mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Some style cleanups related to the ProxyErrorOverride function.
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91171 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -482,7 +482,7 @@ static void * create_proxy_config(apr_pool_t *p, server_rec *s)
|
||||
ps->recv_buffer_size_set = 0;
|
||||
ps->maxfwd = DEFAULT_MAX_FORWARDS;
|
||||
ps->maxfwd_set = 0;
|
||||
ps->HTTPOverrideErrors=0;
|
||||
ps->error_override = 0;
|
||||
return ps;
|
||||
}
|
||||
|
||||
@@ -761,12 +761,12 @@ static const char *
|
||||
return NULL;
|
||||
}
|
||||
static const char *
|
||||
set_http_proxy_override_error(cmd_parms *parms, void *dummy, int flag)
|
||||
set_proxy_error_override(cmd_parms *parms, void *dummy, int flag)
|
||||
{
|
||||
proxy_server_conf *psf =
|
||||
ap_get_module_config(parms->server->module_config, &proxy_module);
|
||||
|
||||
psf->HTTPOverrideErrors = flag;
|
||||
psf->error_override = flag;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -940,7 +940,7 @@ static const command_rec proxy_cmds[] =
|
||||
"A list of ports which CONNECT may connect to"),
|
||||
AP_INIT_TAKE1("ProxyVia", set_via_opt, NULL, RSRC_CONF,
|
||||
"Configure Via: proxy header header to one of: on | off | block | full"),
|
||||
AP_INIT_FLAG("ProxyErrorOverride", set_http_proxy_override_error, NULL, RSRC_CONF,
|
||||
AP_INIT_FLAG("ProxyErrorOverride", set_proxy_error_override, NULL, RSRC_CONF,
|
||||
"use our error handling pages instead of the servers we are proxying"),
|
||||
{NULL}
|
||||
};
|
||||
|
Reference in New Issue
Block a user