Nicolas Cannasse 18 years ago
parent
commit
74ba8578de
3 changed files with 6 additions and 2 deletions
  1. 4 0
      std/flash9/Lib.hx
  2. 1 1
      std/flash9/net/URLRequest.hx
  3. 1 1
      std/flash9/net/URLVariables.hx

+ 4 - 0
std/flash9/Lib.hx

@@ -46,8 +46,12 @@ class Lib {
 				break;
 				break;
 		}
 		}
 		if( o == null ) {
 		if( o == null ) {
+			#if !as3gen
+			// this is a small hack for a "api" global
+			// which can be used by some MT libraries
 			if( path == "api" )
 			if( path == "api" )
 				return untyped __global__["api"];
 				return untyped __global__["api"];
+			#end
 			return null;
 			return null;
 		}
 		}
 		for( f in fields )
 		for( f in fields )

+ 1 - 1
std/flash9/net/URLRequest.hx

@@ -5,6 +5,6 @@ extern class URLRequest {
 	var contentType : String;
 	var contentType : String;
 	var data : Dynamic;
 	var data : Dynamic;
 	var method : String;
 	var method : String;
-	var requestHeaders : Array<Dynamic>;
+	var requestHeaders : Array<URLRequestHeader>;
 	var url : String;
 	var url : String;
 }
 }

+ 1 - 1
std/flash9/net/URLVariables.hx

@@ -1,6 +1,6 @@
 package flash.net;
 package flash.net;
 
 
-extern class URLVariables {
+extern class URLVariables implements Dynamic {
 	function new(?source : String) : Void;
 	function new(?source : String) : Void;
 	function decode(source : String) : Void;
 	function decode(source : String) : Void;
 	function toString() : String;
 	function toString() : String;