]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Support custom ErrorDocuments for HTTP 501 and 414 status codes.
authorEric Covener <covener@apache.org>
Fri, 31 Oct 2014 13:17:38 +0000 (13:17 +0000)
committerEric Covener <covener@apache.org>
Fri, 31 Oct 2014 13:17:38 +0000 (13:17 +0000)
PR 57167 [Edward Lu <Chaosed0 gmail.com>]

Submitted By: Edward Lu <Chaosed0 gmail.com>
Committed By: covener

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1635762 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
server/protocol.c

diff --git a/CHANGES b/CHANGES
index a238ebdbb3891c96a9657b4e52f653d4d02181ec..ce9b217a5bec8e77348a3e40591e6dbb89b0dfb2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
  
+  *) core: Support custom ErrorDocuments for HTTP 501 and 414 status codes.
+     PR 57167 [Edward Lu <Chaosed0 gmail.com>]
+
   *) mod_proxy_connect: Don't issue AH02447 on sockets hangups, let the read
      determine whether it is a normal close or a real error. PR 57168. [Yann
      Ylavic]
index 9e65fe3c28d00541fdb83e22fa3fa6ea00a9d394..91468960520e3e30357f24f00e3b410209a45ab2 100644 (file)
@@ -1063,9 +1063,12 @@ request_rec *ap_read_request(conn_rec *conn)
                 ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(00566)
                               "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);
             goto traceout;
         case HTTP_REQUEST_TIME_OUT: