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");
}
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);
}
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))) {