diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-09-28 16:49:43 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-09-28 16:49:43 -0400 |
| commit | 1fcfff41c7d33266a059b9f4161f9aea34be8de4 (patch) | |
| tree | db41aa2494cc0a69299f50efc2a53ef781dc5741 /MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs | |
| parent | c05cb1dcb1bb51cadc6e413395f2adb63cbab6ad (diff) | |
update channels
Diffstat (limited to 'MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs index f761c0964..17e59502e 100644 --- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs +++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs @@ -231,9 +231,12 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager /// </exception> public async Task<HttpResponseInfo> SendAsync(HttpRequestOptions options, string httpMethod) { + HttpResponseInfo response; + if (!options.EnableUnconditionalCache) { - return await SendAsyncInternal(options, httpMethod).ConfigureAwait(false); + response = await SendAsyncInternal(options, httpMethod).ConfigureAwait(false); + return response; } var url = options.Url; @@ -242,7 +245,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager var responseCachePath = Path.Combine(_appPaths.CachePath, "httpclient", urlHash); - var response = await GetCachedResponse(responseCachePath, options.CacheLength, url).ConfigureAwait(false); + response = await GetCachedResponse(responseCachePath, options.CacheLength, url).ConfigureAwait(false); if (response != null) { return response; |
