mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	read entire response content
This commit is contained in:
		
							parent
							
								
									07b7ab9a0b
								
							
						
					
					
						commit
						aaa5cad5a0
					
				@ -78,6 +78,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
 | 
				
			|||||||
        /// Gets
 | 
					        /// Gets
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        /// <param name="host">The host.</param>
 | 
					        /// <param name="host">The host.</param>
 | 
				
			||||||
 | 
					        /// <param name="enableHttpCompression">if set to <c>true</c> [enable HTTP compression].</param>
 | 
				
			||||||
        /// <returns>HttpClient.</returns>
 | 
					        /// <returns>HttpClient.</returns>
 | 
				
			||||||
        /// <exception cref="System.ArgumentNullException">host</exception>
 | 
					        /// <exception cref="System.ArgumentNullException">host</exception>
 | 
				
			||||||
        private HttpClient GetHttpClient(string host, bool enableHttpCompression)
 | 
					        private HttpClient GetHttpClient(string host, bool enableHttpCompression)
 | 
				
			||||||
@ -185,7 +186,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                options.CancellationToken.ThrowIfCancellationRequested();
 | 
					                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)
 | 
					                if (options.EnableResponseCache)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user