lib/curl/Adapter: remove redundant size check
This commit is contained in:
@ -113,10 +113,10 @@ CurlResponseHandlerAdapter::Done(CURLcode result) noexcept
|
|||||||
static bool
|
static bool
|
||||||
IsResponseBoundaryHeader(std::string_view s) noexcept
|
IsResponseBoundaryHeader(std::string_view s) noexcept
|
||||||
{
|
{
|
||||||
return s.size() > 5 && (s.starts_with("HTTP/"sv) ||
|
return s.starts_with("HTTP/"sv) ||
|
||||||
/* the proprietary "ICY 200 OK" is
|
/* the proprietary "ICY 200 OK" is emitted by
|
||||||
emitted by Shoutcast */
|
Shoutcast */
|
||||||
s.starts_with("ICY 2"sv));
|
s.starts_with("ICY 2"sv);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
|
Reference in New Issue
Block a user