Commit cbb9b695 authored by Max Kellermann's avatar Max Kellermann

storage/curl: use StringStartsWith()

parent f6b56c93
...@@ -251,7 +251,7 @@ gcc_pure ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment