Browse Source

Don't serialize payloads twice

tags/1.0-rc
RogueException 9 years ago
parent
commit
82471845d8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Net/Rest/DefaultRestClient.cs

+ 1
- 1
src/Discord.Net/Net/Rest/DefaultRestClient.cs View File

@@ -59,7 +59,7 @@ namespace Discord.Net.Rest
using (var restRequest = new HttpRequestMessage(GetMethod(method), uri))
{
if (json != null)
restRequest.Content = new StringContent(JsonConvert.SerializeObject(json), Encoding.UTF8, "application/json");
restRequest.Content = new StringContent(json, Encoding.UTF8, "application/json");
return await SendInternal(restRequest, _cancelToken).ConfigureAwait(false);
}
}


Loading…
Cancel
Save