@@ -224,7 +224,7 @@ class Web {
key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', key))));
_clientHeaders[key] = Std.string(value);
}
- } else if(isset(copyServer[key])) {
+ } else if(copyServer[key] != null) {
_clientHeaders[copyServer[key]] = Std.string(value);
});
@@ -48,7 +48,7 @@ import php.NativeIndexedArray;
See `Map.get`
**/
public inline function get( key : Int ) : Null<T> {
- return Global.isset(data[key]) ? data[key] : null;
+ return Syntax.binop(data[key], '??', null);
/**
@@ -39,7 +39,7 @@ import haxe.Constraints;
public inline function get( key : String ) : Null<T> {
public inline function exists( key : String ) : Bool {