aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-22 09:49:57 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-22 09:49:57 -0400
commitaaa5cad5a0dbdf56fbf90b39ac0e55a5198fd0cd (patch)
treee2ebbefebc118e78ded19c11233f174a1089a903 /MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
parent07b7ab9a0b64d51646addc9a2a75189c2981a854 (diff)
read entire response content
Diffstat (limited to 'MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
index d01c9e205..9afc24c01 100644
--- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
+++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
@@ -78,6 +78,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
/// Gets
/// </summary>
/// <param name="host">The host.</param>
+ /// <param name="enableHttpCompression">if set to <c>true</c> [enable HTTP compression].</param>
/// <returns>HttpClient.</returns>
/// <exception cref="System.ArgumentNullException">host</exception>
private HttpClient GetHttpClient(string host, bool enableHttpCompression)
@@ -185,7 +186,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
{
options.CancellationToken.ThrowIfCancellationRequested();
- var response = await GetHttpClient(GetHostFromUrl(options.Url), options.EnableHttpCompression).SendAsync(message, HttpCompletionOption.ResponseHeadersRead, options.CancellationToken).ConfigureAwait(false);
+ var response = await GetHttpClient(GetHostFromUrl(options.Url), options.EnableHttpCompression).SendAsync(message, HttpCompletionOption.ResponseContentRead, options.CancellationToken).ConfigureAwait(false);
if (options.EnableResponseCache)
{