From 19ba8e376c078a91a265c87a7e968098e9b3868e Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Mon, 10 Aug 2015 16:52:47 -0300 Subject: [PATCH] Fixed GET methods --- Discord.Net/Helpers/Http.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Discord.Net/Helpers/Http.cs b/Discord.Net/Helpers/Http.cs index fe8e2cb22..acd99f8cb 100644 --- a/Discord.Net/Helpers/Http.cs +++ b/Discord.Net/Helpers/Http.cs @@ -90,7 +90,7 @@ namespace Discord.Helpers where ResponseT : class { string requestJson = JsonConvert.SerializeObject(data); - string responseJson = await SendRequest("POST", path, requestJson, options, true); + string responseJson = await SendRequest(method, path, requestJson, options, true); var response = JsonConvert.DeserializeObject(responseJson); #if DEBUG CheckResponse(responseJson, response); @@ -100,7 +100,7 @@ namespace Discord.Helpers internal static async Task Send(string method, string path, object data, HttpOptions options) { string requestJson = JsonConvert.SerializeObject(data); - string responseJson = await SendRequest("POST", path, requestJson, options, _isDebug); + string responseJson = await SendRequest(method, path, requestJson, options, _isDebug); #if DEBUG CheckEmptyResponse(responseJson); #endif @@ -109,7 +109,7 @@ namespace Discord.Helpers internal static async Task Send(string method, string path, HttpOptions options) where ResponseT : class { - string responseJson = await SendRequest("POST", path, null, options, true); + string responseJson = await SendRequest(method, path, null, options, true); var response = JsonConvert.DeserializeObject(responseJson); #if DEBUG CheckResponse(responseJson, response); @@ -118,7 +118,7 @@ namespace Discord.Helpers } internal static async Task Send(string method, string path, HttpOptions options) { - string responseJson = await SendRequest("POST", path, null, options, _isDebug); + string responseJson = await SendRequest(method, path, null, options, _isDebug); #if DEBUG CheckEmptyResponse(responseJson); #endif