Fixed HttpClient error on non-DNX builds

This commit is contained in:
RogueException
2015-09-08 22:47:10 -03:00
parent f84048bd73
commit 109fbfe952

View File

@@ -174,7 +174,11 @@ namespace Discord.Helpers
}
else
{
#if !NET45
response = await _client.SendAsync(msg, HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false);
#else
response = await _client.SendAsync(msg, HttpCompletionOption.ResponseContentRead).ConfigureAwait(false);
#endif
if (!response.IsSuccessStatusCode)
throw new HttpException(response.StatusCode);
result = null;