lib/curl/Adapter: remove redundant size check
This commit is contained in:
parent
88a66df9d6
commit
627fd755e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue