1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

change command name so that it starts with 'Proxy'

fix the command so that it returns 'OK' instead of 'HTTP_OK'

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91155 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ian Holsman
2001-09-26 19:58:10 +00:00
parent f9590ea435
commit ae877f9e70
2 changed files with 8 additions and 4 deletions

View File

@@ -940,7 +940,7 @@ static const command_rec proxy_cmds[] =
"A list of ports which CONNECT may connect to"), "A list of ports which CONNECT may connect to"),
AP_INIT_TAKE1("ProxyVia", set_via_opt, NULL, RSRC_CONF, AP_INIT_TAKE1("ProxyVia", set_via_opt, NULL, RSRC_CONF,
"Configure Via: proxy header header to one of: on | off | block | full"), "Configure Via: proxy header header to one of: on | off | block | full"),
AP_INIT_FLAG("HTTPProxyOverrideReturnedErrors", set_http_proxy_override_error, NULL, RSRC_CONF, AP_INIT_FLAG("ProxyHTTPOverrideReturnedErrors", set_http_proxy_override_error, NULL, RSRC_CONF,
"use our error handling pages instead of the servers we are proxying"), "use our error handling pages instead of the servers we are proxying"),
{NULL} {NULL}
}; };

View File

@@ -860,9 +860,13 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
} }
} }
if ( conf->HTTPOverrideErrors ) if ( conf->HTTPOverrideErrors ) {
return r->status; /* the code above this checks for 'OK' which is what the hook expects */
else if ( r->status == HTTP_OK )
return OK;
else
return r->status;
} else
return OK; return OK;
} }