Преглед изворни кода

[php] replace `-` with `_` in `php.Web.loadClientHeaders()`, just in case

Alexander Kuzmenko пре 6 година
родитељ
комит
08b16544a8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      std/php/Web.hx

+ 1 - 1
std/php/Web.hx

@@ -201,7 +201,7 @@ class Web {
 
 		if(function_exists('getallheaders')) {
 			foreach(getallheaders(), function(key:String, value:Dynamic) {
-				_clientHeaders.set(Global.strtoupper(key), Std.string(value));
+				_clientHeaders.set(str_replace('-', '_', strtoupper(key)), Std.string(value));
 			});
 			return _clientHeaders;
 		}