lib/curl/Request: "ICY 200 OK" is a response boundary header

This commit is contained in:
Max Kellermann 2017-03-10 16:28:02 +01:00
parent 190d525099
commit ac8dce6599
2 changed files with 6 additions and 1 deletions

2
NEWS
View File

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

View File

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