Browse Source

request post parameter optional

Nicolas Cannasse 12 years ago
parent
commit
88944b9483
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/Http.hx

+ 1 - 1
std/haxe/Http.hx

@@ -155,7 +155,7 @@ class Http {
 		(Js) If [this].async is false, the callback functions are called before
 		this method returns.
 	**/
-	public function request( post : Bool ) : Void {
+	public function request( ?post : Bool ) : Void {
 		var me = this;
 	#if js
 		var r = js.Browser.createXMLHttpRequest();