lib/curl/Request: "ICY 200 OK" is a response boundary header
This commit is contained in:
parent
190d525099
commit
ac8dce6599
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
|||
ver 0.20.6 (not yet released)
|
||||
* input
|
||||
- curl: fix headers after HTTP redirect to Shoutcast server
|
||||
* decoder
|
||||
- ffmpeg: re-enable as fallback
|
||||
- mpcdec: fix crash (division by zero) after seeking
|
||||
|
|
|
@ -172,7 +172,10 @@ gcc_pure
|
|||
static bool
|
||||
IsResponseBoundaryHeader(StringView s)
|
||||
{
|
||||
return s.size > 5 && memcmp(s.data, "HTTP/", 5) == 0;
|
||||
return s.size > 5 && (memcmp(s.data, "HTTP/", 5) == 0 ||
|
||||
/* the proprietary "ICY 200 OK" is
|
||||
emitted by Shoutcast */
|
||||
memcmp(s.data, "ICY 2", 5) == 0);
|
||||
}
|
||||
|
||||
inline void
|
||||
|
|
Loading…
Reference in New Issue