From 932973d656cde64f1052fe9ecfaa4ae30bca05b1 Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Mon, 3 Mar 2014 19:04:49 -0600 Subject: [PATCH] Fix JSON and HTTP not posting --- lib/Typertext/Http/HttpRequest.ts | 2 +- lib/Typertext/Json/JsonRequest.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Typertext/Http/HttpRequest.ts b/lib/Typertext/Http/HttpRequest.ts index 59513b2..9bc6d3d 100644 --- a/lib/Typertext/Http/HttpRequest.ts +++ b/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); } /** diff --git a/lib/Typertext/Json/JsonRequest.ts b/lib/Typertext/Json/JsonRequest.ts index 6221ecf..226abf7 100644 --- a/lib/Typertext/Json/JsonRequest.ts +++ b/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); } /**