storage/curl: use StringStartsWith()
This commit is contained in:
parent
f6b56c9317
commit
cbb9b6957f
@ -251,7 +251,7 @@ gcc_pure
|
|||||||
static bool
|
static bool
|
||||||
IsXmlContentType(const char *content_type) noexcept
|
IsXmlContentType(const char *content_type) noexcept
|
||||||
{
|
{
|
||||||
return strncmp(content_type, "text/xml", 8) == 0;
|
return StringStartsWith(content_type, "text/xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
|
Loading…
Reference in New Issue
Block a user