[svn-commits] twilson: trunk r310241 - in /trunk: ./ main/manager.c res/res_phoneprov.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Mar 10 10:09:13 CST 2011
Author: twilson
Date: Thu Mar 10 10:09:09 2011
New Revision: 310241
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=310241
Log:
Merged revisions 310240 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r310240 | twilson | 2011-03-10 10:05:45 -0600 (Thu, 10 Mar 2011) | 13 lines
Add \r\n to remaining http headers passed to ast_http_send
r309204 changed the behavior of ast_http_send. It now requires headers
to be passed with trailing \r\n. This change updates the remaining
instances in the code that did not pass the \r\n.
(closes issue #18186)
Reported by: nivaldomjunior
Patches:
res_phoneprov.c.diff uploaded by lathama (license 1028)
manager.diff.txt uploaded by twilson (license 396)
Tested by: lathama
........
Modified:
trunk/ (props changed)
trunk/main/manager.c
trunk/res/res_phoneprov.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: trunk/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/manager.c?view=diff&rev=310241&r1=310240&r2=310241
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Thu Mar 10 10:09:09 2011
@@ -5852,7 +5852,7 @@
goto auth_callback_out;
}
- ast_str_append(&http_header, 0, "Content-type: text/%s", contenttype[format]);
+ ast_str_append(&http_header, 0, "Content-type: text/%s\r\n", contenttype[format]);
if (format == FORMAT_XML) {
ast_str_append(&out, 0, "<ajax-response>\n");
Modified: trunk/res/res_phoneprov.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_phoneprov.c?view=diff&rev=310241&r1=310240&r2=310241
==============================================================================
--- trunk/res/res_phoneprov.c (original)
+++ trunk/res/res_phoneprov.c Thu Mar 10 10:09:09 2011
@@ -440,7 +440,7 @@
}
http_header = ast_str_create(80);
- ast_str_set(&http_header, 0, "Content-type: %s",
+ ast_str_set(&http_header, 0, "Content-type: %s\r\n",
route->file->mime_type);
ast_http_send(ser, method, 200, NULL, http_header, NULL, fd, 0);
@@ -504,7 +504,7 @@
}
http_header = ast_str_create(80);
- ast_str_set(&http_header, 0, "Content-type: %s",
+ ast_str_set(&http_header, 0, "Content-type: %s\r\n",
route->file->mime_type);
if (!(result = ast_str_create(512))) {
More information about the svn-commits
mailing list