storage/curl: support Content-Type application/xml

This commit is contained in:
Max Kellermann 2017-09-01 11:32:40 +02:00
parent cbb9b6957f
commit f4f461b8bb
2 changed files with 4 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.20.11 (not yet released)
* storage
- curl: support Content-Type application/xml
ver 0.20.10 (2017/08/24)
* decoder

View File

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