diff options
author | Terry Wilson <twilson@digium.com> | 2011-03-10 16:09:09 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2011-03-10 16:09:09 +0000 |
commit | 254092f8f6fb1567d54b730a12398667bf3577de (patch) | |
tree | 7753c8a35eaa2865b6a433e5b4fa69b93082df56 /main | |
parent | 0d66e03bf43aee53d6d4bf2e0002e3a1f45bb3ae (diff) |
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
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@310241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index 1b0ce8897..f69f3fad8 100644 --- a/main/manager.c +++ b/main/manager.c @@ -5852,7 +5852,7 @@ static int auth_http_callback(struct ast_tcptls_session_instance *ser, 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"); |