Franco Ponticelli 17 éve
szülő
commit
560c3c18ca
1 módosított fájl, 4 hozzáadás és 2 törlés
  1. 4 2
      std/php/Web.hx

+ 4 - 2
std/php/Web.hx

@@ -155,9 +155,11 @@ class Web {
 	**/
 	public static function getClientHeader( k : String ) : String {
 		//Remark : PHP puts all headers in uppercase and replaces - with _, we deal with that here
-		for(i in getClientHeaders())
-			if(i.header == StringTools.replace(k.toUpperCase(),"-","_"))
+		var k = StringTools.replace(k.toUpperCase(),"-","_");
+		for(i in getClientHeaders()) {
+			if(i.header == k)
 				return i.value;
+		}
 		return null;
 	}