Commit 2a3bdafc authored by Zeeshan Ali (Khattak)'s avatar Zeeshan Ali (Khattak)
Browse files

Use correct mime-type for XML data

The shared-mime-info that we use to detect mime-type of the contents we
are serving reports "application/xml" for XML, which seems to break
compatibility with some crappy XML parsers (See According to UPnP
Device Architecture 1.1, we MUST use the following value:

text/xml; charset="utf-8"
parent 0c56a3b3
......@@ -319,6 +319,10 @@ http_response_set_content_type (SoupMessage *msg,
mime = g_content_type_get_mime_type (content_type);
if (mime == NULL)
mime = g_strdup ("application/octet-stream");
else if (strcmp (mime, "application/xml") == 0) {
g_free (mime);
mime = g_strdup ("text/xml; charset=\"utf-8\"");
soup_message_headers_append (msg->response_headers,
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