mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 00:35:26 +03:00
Add dlna headers to static responses
This commit is contained in:
@@ -193,6 +193,8 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||
|
||||
if (request.Static && state.IsRemote)
|
||||
{
|
||||
AddDlnaHeaders(state, responseHeaders, true);
|
||||
|
||||
return GetStaticRemoteStreamResult(state.MediaPath, responseHeaders, isHeadRequest).Result;
|
||||
}
|
||||
|
||||
@@ -257,7 +259,6 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||
var result = new StaticRemoteStreamWriter(response, httpClient);
|
||||
|
||||
result.Options["Content-Type"] = contentType;
|
||||
AddDlnaHeaders(state, responseHeaders, isStatic);
|
||||
|
||||
// Add the response headers to the result object
|
||||
foreach (var header in responseHeaders)
|
||||
|
||||
Reference in New Issue
Block a user