with UDA 1.1 content-type should include charset

This commit is contained in:
Thomas Bernard 2016-02-16 10:56:32 +01:00
parent 22f7836816
commit 92e6173a97
1 changed files with 5 additions and 1 deletions

View File

@ -385,7 +385,11 @@ static void upnp_event_prepare(struct upnp_event_notify * obj)
static const char notifymsg[] = static const char notifymsg[] =
"NOTIFY %s HTTP/1.1\r\n" "NOTIFY %s HTTP/1.1\r\n"
"Host: %s%s\r\n" "Host: %s%s\r\n"
"Content-Type: text/xml\r\n" #if (UPNP_VERSION_MAJOR == 1) && (UPNP_VERSION_MINOR == 0)
"Content-Type: text/xml\r\n" /* UDA v1.0 */
#else
"Content-Type: text/xml; charset=\"utf-8\"\r\n" /* UDA v1.1 or later */
#endif
"Content-Length: %d\r\n" "Content-Length: %d\r\n"
"NT: upnp:event\r\n" "NT: upnp:event\r\n"
"NTS: upnp:propchange\r\n" "NTS: upnp:propchange\r\n"