diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2021-02-20 10:52:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-20 10:52:30 +0900 |
| commit | 175e2a5249079e5fd40aefdd646b9ef9a0ced733 (patch) | |
| tree | 212b7d4711b448cab691da4fad148ec3c3ce3fdf /Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs | |
| parent | 5379fa0bd082bd8e1b15bbb1f6517cab932ee2bb (diff) | |
| parent | e9f22303a4ff4ff2fb6e71f64b62f8b98b4d497b (diff) | |
Merge pull request #5242 from jellyfin/cancellationtokens
Properly forward cancellationTokens
Diffstat (limited to 'Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs')
| -rw-r--r-- | Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs b/Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs index cfa2c1229..89d36ab09 100644 --- a/Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs +++ b/Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs @@ -39,7 +39,7 @@ namespace Jellyfin.Api.Helpers } // Can't dispose the response as it's required up the call chain. - var response = await httpClient.GetAsync(new Uri(state.MediaPath)).ConfigureAwait(false); + var response = await httpClient.GetAsync(new Uri(state.MediaPath), cancellationToken).ConfigureAwait(false); var contentType = response.Content.Headers.ContentType?.ToString(); httpContext.Response.Headers[HeaderNames.AcceptRanges] = "none"; |
