mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
handle -1 content length
This commit is contained in:
parent
aa8f3cd493
commit
0cffe00aae
@ -295,7 +295,8 @@ namespace MediaBrowser.Api.Playback.Progressive
|
|||||||
responseHeaders["Accept-Ranges"] = "none";
|
responseHeaders["Accept-Ranges"] = "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.ContentLength.HasValue)
|
// Seeing cases of -1 here
|
||||||
|
if (response.ContentLength.HasValue && response.ContentLength.Value >= 0)
|
||||||
{
|
{
|
||||||
responseHeaders["Content-Length"] = response.ContentLength.Value.ToString(UsCulture);
|
responseHeaders["Content-Length"] = response.ContentLength.Value.ToString(UsCulture);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user