[xiph-commits] r18698 - icecast/trunk/icecast/src
ph3-der-loewe at svn.xiph.org
ph3-der-loewe at svn.xiph.org
Tue Nov 13 06:40:49 PST 2012
Author: ph3-der-loewe
Date: 2012-11-13 06:40:48 -0800 (Tue, 13 Nov 2012)
New Revision: 18698
Modified:
icecast/trunk/icecast/src/admin.c
Log:
corrected Content-Length: header in admin (raw) requests. Thanks to paluh for reporting.
Modified: icecast/trunk/icecast/src/admin.c
===================================================================
--- icecast/trunk/icecast/src/admin.c 2012-11-13 14:27:03 UTC (rev 18697)
+++ icecast/trunk/icecast/src/admin.c 2012-11-13 14:40:48 UTC (rev 18698)
@@ -280,7 +280,7 @@
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);
More information about the commits
mailing list