aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-04-30 22:20:54 +0200
committerGitHub <noreply@github.com>2019-04-30 22:20:54 +0200
commit06cc2891de38cfc79fe4463e9d7b48fb4b880224 (patch)
tree6644f7009878a754f4d03271ccefe7237c8dab66 /MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
parent7c4cb5ec5842928d7dbdbb2f5856b502979be49c (diff)
parenta827a2fbccd0532631f4de849e18a9eeff772b5d (diff)
Merge pull request #1310 from bugfixin/progressivestreamingservice-unreachable
Remove unreachable code from BaseProgressiveStreamingService
Diffstat (limited to 'MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs25
1 files changed, 1 insertions, 24 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
index 1c36289c5..83a3f3e3c 100644
--- a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
+++ b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
@@ -283,8 +283,6 @@ namespace MediaBrowser.Api.Playback.Progressive
{
state.RemoteHttpHeaders.TryGetValue(HeaderNames.UserAgent, out var useragent);
- const bool trySupportSeek = false;
-
var options = new HttpRequestOptions
{
Url = state.MediaPath,
@@ -293,30 +291,9 @@ namespace MediaBrowser.Api.Playback.Progressive
CancellationToken = cancellationTokenSource.Token
};
- if (trySupportSeek)
- {
- if (!string.IsNullOrWhiteSpace(Request.QueryString[HeaderNames.Range]))
- {
- options.RequestHeaders[HeaderNames.Range] = Request.QueryString[HeaderNames.Range];
- }
- }
var response = await HttpClient.GetResponse(options).ConfigureAwait(false);
- if (trySupportSeek)
- {
- foreach (var name in new[] { HeaderNames.ContentRange, HeaderNames.AcceptRanges })
- {
- var val = response.Headers[name];
- if (!string.IsNullOrWhiteSpace(val))
- {
- responseHeaders[name] = val;
- }
- }
- }
- else
- {
- responseHeaders[HeaderNames.AcceptRanges] = "none";
- }
+ responseHeaders[HeaderNames.AcceptRanges] = "none";
// Seeing cases of -1 here
if (response.ContentLength.HasValue && response.ContentLength.Value >= 0)