From f4f461b8bb8e572c5e434efbc80a45385e5a34c4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 1 Sep 2017 11:32:40 +0200 Subject: [PATCH] storage/curl: support Content-Type application/xml --- NEWS | 2 ++ src/storage/plugins/CurlStorage.cxx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 91073738b..a62ed71d1 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/src/storage/plugins/CurlStorage.cxx b/src/storage/plugins/CurlStorage.cxx index 62defaae0..85863cb07 100644 --- a/src/storage/plugins/CurlStorage.cxx +++ b/src/storage/plugins/CurlStorage.cxx @@ -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