1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00

corrected Content-Length: header in admin (raw) requests. Thanks to paluh for reporting.

svn path=/icecast/trunk/icecast/; revision=18698
This commit is contained in:
Philipp Schafft 2012-11-13 14:40:48 +00:00
parent 5b8e359f10
commit 67d91cc3d2

View File

@ -280,7 +280,7 @@ void admin_send_response (xmlDocPtr doc, client_t *client,
0, 200, NULL,
"text/xml", NULL,
NULL);
len += snprintf (client->refbuf->data + len, buf_len - len, "Content-Length: %d\r\n\r\n%s", len, buff);
len += snprintf (client->refbuf->data + len, buf_len - len, "Content-Length: %d\r\n\r\n%s", xmlStrlen(buff), buff);
client->refbuf->len = len;
xmlFree(buff);