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

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