]> granicus.if.org Git - apache/commitdiff
mod_proxy: follow up to r1681694.
authorYann Ylavic <ylavic@apache.org>
Mon, 1 Jun 2015 14:06:39 +0000 (14:06 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 1 Jun 2015 14:06:39 +0000 (14:06 +0000)
Handle the proxy-error-override note also in mod_proxy_ajp.

The note is not needed in mod_proxy_fcgi (which also handles
ProxyErrorOverride) since it calls ap_die() by itself, and always
returns OK to proxy_handler().

Add a comment about the note where used.

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

modules/proxy/mod_proxy_ajp.c
modules/proxy/mod_proxy_http.c

index fadc656197011b4cc9f3f5bb3310f25a63d7896c..ece475ddf687eabf8f44304b751c3439b50b9a88 100644 (file)
@@ -644,6 +644,11 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
              */
             rv = r->status;
             r->status = HTTP_OK;
+            /*
+             * prevent proxy_handler() from treating this as an
+             * internal error.
+             */
+            apr_table_setn(r->notes, "proxy-error-override", "1");
         }
         else {
             rv = OK;
index 6eb9e7a4174e97c70fae03814899515024ae075f..f835d145078a5f473360feb972eea13b10183ca4 100644 (file)
@@ -1719,6 +1719,10 @@ int ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
                 ap_discard_request_body(backend->r);
             }
             proxy_run_detach_backend(r, backend);
+            /*
+             * prevent proxy_handler() from treating this as an
+             * internal error.
+             */
             apr_table_setn(r->notes, "proxy-error-override", "1");
             return proxy_status;
         }