lib/curl/Adapter: remove redundant size check

This commit is contained in:
Max Kellermann 2022-07-01 16:54:46 +02:00
parent 88a66df9d6
commit 627fd755e8
1 changed files with 4 additions and 4 deletions

View File

@ -113,10 +113,10 @@ CurlResponseHandlerAdapter::Done(CURLcode result) noexcept
static bool
IsResponseBoundaryHeader(std::string_view s) noexcept
{
return s.size() > 5 && (s.starts_with("HTTP/"sv) ||
/* the proprietary "ICY 200 OK" is
emitted by Shoutcast */
s.starts_with("ICY 2"sv));
return s.starts_with("HTTP/"sv) ||
/* the proprietary "ICY 200 OK" is emitted by
Shoutcast */
s.starts_with("ICY 2"sv);
}
inline void