diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-09-04 18:38:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-04 18:38:39 -0400 |
| commit | 6152d403031755e7ec5278ed7467b3f16c1642a4 (patch) | |
| tree | 849eabc305cf5b942d265626bbc4f97d15e243d2 /Jellyfin.Api/Controllers/VideosController.cs | |
| parent | 376e4793e610838fc05db7fdd0372e5b7e6cb2d6 (diff) | |
| parent | 23df4991b67576d9150bdf2b3240738968cad9a1 (diff) | |
Merge pull request #4030 from crobibero/http-client-migrate
Remove IHttpClient
Diffstat (limited to 'Jellyfin.Api/Controllers/VideosController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/VideosController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/VideosController.cs b/Jellyfin.Api/Controllers/VideosController.cs index 0978d44e9..83b03f965 100644 --- a/Jellyfin.Api/Controllers/VideosController.cs +++ b/Jellyfin.Api/Controllers/VideosController.cs @@ -11,6 +11,7 @@ using Jellyfin.Api.Extensions; using Jellyfin.Api.Helpers; using Jellyfin.Api.Models.StreamingDtos; using MediaBrowser.Common.Configuration; +using MediaBrowser.Common.Net; using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Devices; using MediaBrowser.Controller.Dlna; @@ -473,7 +474,7 @@ namespace Jellyfin.Api.Controllers { StreamingHelpers.AddDlnaHeaders(state, Response.Headers, true, startTimeTicks, Request, _dlnaManager); - var httpClient = _httpClientFactory.CreateClient(); + var httpClient = _httpClientFactory.CreateClient(NamedClient.Default); return await FileStreamResponseHelpers.GetStaticRemoteStreamResult(state, isHeadRequest, httpClient, HttpContext).ConfigureAwait(false); } |
