Fixed seek not working with HTTP

This commit is contained in:
Thong Nguyen 2014-11-10 17:25:02 +00:00
parent 269f335ee4
commit 000930a295
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "StreamingKit"
s.version = "0.1.24"
s.version = "0.1.25"
s.summary = "A fast and extensible audio streamer for iOS and OSX with support for gapless playback and custom (non-HTTP) sources."
s.homepage = "https://github.com/tumtumtum/StreamingKit/"
s.license = 'MIT'

View File

@ -311,7 +311,7 @@
self->iceHeaderData = nil;
}
if (([httpHeaders objectForKey:@"Accepts-Ranges"] ?: [httpHeaders objectForKey:@"accepts-ranges"]) != nil)
if (([httpHeaders objectForKey:@"Accept-Ranges"] ?: [httpHeaders objectForKey:@"accept-ranges"]) != nil)
{
self->supportsSeek = YES;
}
@ -497,8 +497,6 @@
return;
}
self->supportsSeek = NO;
self->currentUrl = url;
if (url == nil)