mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
update translations
This commit is contained in:
parent
020ceb97d2
commit
d611d0e717
1 changed files with 2 additions and 5 deletions
|
@ -293,12 +293,9 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
|
||||||
/// </exception>
|
/// </exception>
|
||||||
public async Task<HttpResponseInfo> SendAsync(HttpRequestOptions options, string httpMethod)
|
public async Task<HttpResponseInfo> SendAsync(HttpRequestOptions options, string httpMethod)
|
||||||
{
|
{
|
||||||
HttpResponseInfo response;
|
|
||||||
|
|
||||||
if (options.CacheMode == CacheMode.None)
|
if (options.CacheMode == CacheMode.None)
|
||||||
{
|
{
|
||||||
response = await SendAsyncInternal(options, httpMethod).ConfigureAwait(false);
|
return await SendAsyncInternal(options, httpMethod).ConfigureAwait(false);
|
||||||
return response;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var url = options.Url;
|
var url = options.Url;
|
||||||
|
@ -306,7 +303,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
|
||||||
|
|
||||||
var responseCachePath = Path.Combine(_appPaths.CachePath, "httpclient", urlHash);
|
var responseCachePath = Path.Combine(_appPaths.CachePath, "httpclient", urlHash);
|
||||||
|
|
||||||
response = await GetCachedResponse(responseCachePath, options.CacheLength, url).ConfigureAwait(false);
|
var response = await GetCachedResponse(responseCachePath, options.CacheLength, url).ConfigureAwait(false);
|
||||||
if (response != null)
|
if (response != null)
|
||||||
{
|
{
|
||||||
return response;
|
return response;
|
||||||
|
|
Loading…
Reference in a new issue