https://bz.apache.org/bugzilla/show_bug.cgi?id=69430
--- Comment #3 from Yann Ylavic <ylavic....@gmail.com> --- And: apr_table_unset(r->headers_out, "Content-Type"); ap_set_content_type(r, "text/json; charset=utf-8"); ap_custom_response(r, HTTP_BAD_REQUEST, apr_pstrdup(r->pool, "\"{\"foo\": \"bar\"}")); ? Note the new leading \" in the json, this is what's expected (and skipped) by ap_send_error_response() to send plain text straight away. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org For additional commands, e-mail: bugs-h...@httpd.apache.org