mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-07 11:54:35 +00:00
miniupnpd: Content-Type is now text/xml; charset="utf-8" to conform with UDA v1.1
This commit is contained in:
parent
727eaeb2e8
commit
9d94d08bd8
@ -6,6 +6,7 @@ $Id: Changelog.txt,v 1.309 2012/09/27 16:01:10 nanard Exp $
|
|||||||
UPC must be a 12 decimal digit code
|
UPC must be a 12 decimal digit code
|
||||||
SetDefaultConnectionService() checks its argumnents in UPNP_STRICT mode
|
SetDefaultConnectionService() checks its argumnents in UPNP_STRICT mode
|
||||||
Support for Accept-Language/Content-Language HTTP headers
|
Support for Accept-Language/Content-Language HTTP headers
|
||||||
|
Content-Type is now text/xml; charset="utf-8" to conform with UDA v1.1
|
||||||
|
|
||||||
2012/09/20:
|
2012/09/20:
|
||||||
Cleaning code in ipfw (Jardel Weyrich)
|
Cleaning code in ipfw (Jardel Weyrich)
|
||||||
|
@ -655,7 +655,6 @@ Process_upnphttp(struct upnphttp * h)
|
|||||||
|
|
||||||
static const char httpresphead[] =
|
static const char httpresphead[] =
|
||||||
"%s %d %s\r\n"
|
"%s %d %s\r\n"
|
||||||
/*"Content-Type: text/xml; charset=\"utf-8\"\r\n"*/
|
|
||||||
"Content-Type: %s\r\n"
|
"Content-Type: %s\r\n"
|
||||||
"Connection: close\r\n"
|
"Connection: close\r\n"
|
||||||
"Content-Length: %d\r\n"
|
"Content-Length: %d\r\n"
|
||||||
@ -690,11 +689,14 @@ BuildHeader_upnphttp(struct upnphttp * h, int respcode,
|
|||||||
}
|
}
|
||||||
h->res_buf_alloclen = templen;
|
h->res_buf_alloclen = templen;
|
||||||
}
|
}
|
||||||
|
h->res_sent = 0;
|
||||||
h->res_buflen = snprintf(h->res_buf, h->res_buf_alloclen,
|
h->res_buflen = snprintf(h->res_buf, h->res_buf_alloclen,
|
||||||
httpresphead, h->HttpVer,
|
httpresphead, h->HttpVer,
|
||||||
respcode, respmsg,
|
respcode, respmsg,
|
||||||
(h->respflags&FLAG_HTML)?"text/html":"text/xml",
|
(h->respflags&FLAG_HTML)?"text/html":"text/xml; charset=\"utf-8\"",
|
||||||
bodylen);
|
bodylen);
|
||||||
|
/* Content-Type MUST be 'text/xml; charset="utf-8"' according to UDA v1.1 */
|
||||||
|
/* Content-Type MUST be 'text/xml' according to UDA v1.0 */
|
||||||
/* Additional headers */
|
/* Additional headers */
|
||||||
#ifdef ENABLE_EVENTS
|
#ifdef ENABLE_EVENTS
|
||||||
if(h->respflags & FLAG_TIMEOUT) {
|
if(h->respflags & FLAG_TIMEOUT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user