Commit 67d91cc3 authored by Philipp Schafft's avatar Philipp Schafft 🦁

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

svn path=/icecast/trunk/icecast/; revision=18698
parent 5b8e359f
......@@ -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);
......
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