Fix JSON and HTTP not posting
This commit is contained in:
parent
505eae33aa
commit
932973d656
|
@ -38,7 +38,7 @@ module Typertext.Http {
|
||||||
* @param {HttpResponseHandler} callback
|
* @param {HttpResponseHandler} callback
|
||||||
*/
|
*/
|
||||||
public Post(request:HttpUrl, postData:HttpPostData, callback:HttpResponseHandler):void {
|
public Post(request:HttpUrl, postData:HttpPostData, callback:HttpResponseHandler):void {
|
||||||
this.RawRequest(HttpMethod.GET, request, postData, callback);
|
this.RawRequest(HttpMethod.POST, request, postData, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -51,7 +51,7 @@ module Typertext.Json {
|
||||||
* @param {JsonResponseHandler} callback
|
* @param {JsonResponseHandler} callback
|
||||||
*/
|
*/
|
||||||
public Post(request:HttpUrl, postData:HttpPostData, callback:JsonResponseHandler):void {
|
public Post(request:HttpUrl, postData:HttpPostData, callback:JsonResponseHandler):void {
|
||||||
this.RawRequest(HttpMethod.GET, request, postData, callback);
|
this.RawRequest(HttpMethod.POST, request, postData, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue