Add dlna headers to static responses

This commit is contained in:
Luke Pulverenti
2014-02-03 12:44:13 -05:00
parent 1de89cf272
commit 4205dcac9d
25 changed files with 70 additions and 58 deletions

View File

@@ -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)