Browse Source

Fix JSON and HTTP not posting

master
Kegan Myers 8 years ago
parent
commit
932973d656
  1. 2
      lib/Typertext/Http/HttpRequest.ts
  2. 2
      lib/Typertext/Json/JsonRequest.ts

2
lib/Typertext/Http/HttpRequest.ts

@ -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);
}
/**

2
lib/Typertext/Json/JsonRequest.ts

@ -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);
}
/**