aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-02-15 14:19:08 +0100
committerBond_009 <bond.009@outlook.com>2021-02-15 14:19:17 +0100
commite9f22303a4ff4ff2fb6e71f64b62f8b98b4d497b (patch)
treee7a4fabf300f56dc686ef59a5b8e93f7adc34147 /Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs
parent30372fcd68ef0d87b4a2ea2f2915fc86b99a5942 (diff)
Properly forward cancellationTokens
Diffstat (limited to 'Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs')
-rw-r--r--Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs2
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";