소스 검색

read entire response content

Luke Pulverenti 12 년 전
부모
커밋
aaa5cad5a0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs

+ 2 - 1
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)
                 {