diff options
| author | Anthony Lavado <anthonylavado@users.noreply.github.com> | 2019-08-13 01:29:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-13 01:29:16 -0400 |
| commit | 29623d36e84bd35e5fdef91ddc6884658bf87e73 (patch) | |
| tree | 3ddcfd74a1be71f021a3cdabb1cdfac7532d277d /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 443ccbf426695ae2d5aa25cafcddab92f9a21391 (diff) | |
| parent | 9556561a7794dc65a8565194aedf65700d0bcd95 (diff) | |
Merge pull request #1568 from whooo/master
Add DLNA headers if requested by the client
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 77b733dc9..1f78f5afc 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -690,8 +690,8 @@ namespace MediaBrowser.Api.Playback request.AudioCodec = EncodingHelper.InferAudioCodec(url); } - var enableDlnaHeaders = !string.IsNullOrWhiteSpace(request.Params) /*|| - string.Equals(Request.Headers.Get("GetContentFeatures.DLNA.ORG"), "1", StringComparison.OrdinalIgnoreCase)*/; + var enableDlnaHeaders = !string.IsNullOrWhiteSpace(request.Params) || + string.Equals(GetHeader("GetContentFeatures.DLNA.ORG"), "1", StringComparison.OrdinalIgnoreCase); var state = new StreamState(MediaSourceManager, TranscodingJobType) { @@ -1016,11 +1016,6 @@ namespace MediaBrowser.Api.Playback ).FirstOrDefault() ?? string.Empty; } - - foreach (var item in responseHeaders) - { - Request.Response.Headers.Add(item.Key, item.Value); - } } private void AddTimeSeekResponseHeaders(StreamState state, IDictionary<string, string> responseHeaders) |
