diff options
| author | crobibero <cody@robibe.ro> | 2020-08-16 09:47:08 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-08-16 09:47:08 -0600 |
| commit | 8ddcd12348da48c8a07a7f897c014974995af6d9 (patch) | |
| tree | deea84f8be3e87378794cda83187ef55a9189f2c /Jellyfin.Api/Controllers/RemoteImageController.cs | |
| parent | 97fd11c9a43c136badf2d35945bbe50ffaaa6a85 (diff) | |
Remove all using for HttpClient
Diffstat (limited to 'Jellyfin.Api/Controllers/RemoteImageController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/RemoteImageController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/RemoteImageController.cs b/Jellyfin.Api/Controllers/RemoteImageController.cs index bcb20d833..e5b038186 100644 --- a/Jellyfin.Api/Controllers/RemoteImageController.cs +++ b/Jellyfin.Api/Controllers/RemoteImageController.cs @@ -244,7 +244,7 @@ namespace Jellyfin.Api.Controllers /// <returns>Task.</returns> private async Task DownloadImage(string url, Guid urlHash, string pointerCachePath) { - using var httpClient = _httpClientFactory.CreateClient(); + var httpClient = _httpClientFactory.CreateClient(); var response = await httpClient.GetAsync(url).ConfigureAwait(false); var ext = response.Content.Headers.ContentType.MediaType.Split('/').Last(); var fullCachePath = GetFullCachePath(urlHash + "." + ext); |
