Index: main/manager.c =================================================================== --- main/manager.c (revision 310239) +++ main/manager.c (working copy) @@ -5839,7 +5839,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, "\n");