diff --git a/src/storage/plugins/CurlStorage.cxx b/src/storage/plugins/CurlStorage.cxx index 9359de38e..62defaae0 100644 --- a/src/storage/plugins/CurlStorage.cxx +++ b/src/storage/plugins/CurlStorage.cxx @@ -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