Fix JSON and HTTP not posting

This commit is contained in:
Kegan Myers 2014-03-03 19:04:49 -06:00
parent 505eae33aa
commit 932973d656
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ module Typertext.Http {
* @param {HttpResponseHandler} callback
*/
public Post(request:HttpUrl, postData:HttpPostData, callback:HttpResponseHandler):void {
this.RawRequest(HttpMethod.GET, request, postData, callback);
this.RawRequest(HttpMethod.POST, request, postData, callback);
}
/**

View File

@ -51,7 +51,7 @@ module Typertext.Json {
* @param {JsonResponseHandler} callback
*/
public Post(request:HttpUrl, postData:HttpPostData, callback:JsonResponseHandler):void {
this.RawRequest(HttpMethod.GET, request, postData, callback);
this.RawRequest(HttpMethod.POST, request, postData, callback);
}
/**