storage/curl: use StringStartsWith()

This commit is contained in:
Max Kellermann 2017-09-01 11:31:10 +02:00
parent f6b56c9317
commit cbb9b6957f

View File

@ -251,7 +251,7 @@ gcc_pure
static bool
IsXmlContentType(const char *content_type) noexcept
{
return strncmp(content_type, "text/xml", 8) == 0;
return StringStartsWith(content_type, "text/xml");
}
gcc_pure