From: William A. Rowe Jr Date: Thu, 22 Dec 2016 23:30:57 +0000 (+0000) Subject: Backports: r1635762 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=455726ff57b689138deabb1c33b71d39917a5a24;p=thirdparty%2Fapache%2Fhttpd.git Backports: r1635762 Submitted By: Edward Lu Support custom ErrorDocuments for HTTP 501 and 414 status codes. PR 57167 [Edward Lu ] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775776 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index ec03c436a50..ee7ced7cb6e 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,9 @@ Changes with Apache 2.2.32 *) core: Avoid a possible truncation of the faulty header included in the HTML response when LimitRequestFieldSize is reached. [Yann Ylavic] + *) core: Support custom ErrorDocuments for HTTP 501 and 414 status codes. + PR 57167 [Edward Lu ] + Changes with Apache 2.2.31 *) Correct win32 build issues for mod_proxy exports, OpenSSL 1.0.x headers. diff --git a/server/protocol.c b/server/protocol.c index dafc25d06d7..cd69961458b 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -964,9 +964,12 @@ request_rec *ap_read_request(conn_rec *conn) ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, "request failed: invalid characters in URI"); } - ap_send_error_response(r, 0); + access_status = r->status; + r->status = HTTP_OK; + ap_die(access_status, r); ap_update_child_status(conn->sbh, SERVER_BUSY_LOG, r); ap_run_log_transaction(r); + r = NULL; apr_brigade_destroy(tmp_bb); return r; }