ps->recv_buffer_size_set = 0;
ps->maxfwd = DEFAULT_MAX_FORWARDS;
ps->maxfwd_set = 0;
- ps->HTTPOverrideErrors=0;
+ ps->error_override = 0;
return ps;
}
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;
}
"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}
};
* if we are overriding the errors, we cant put the content of the
* page into the brigade
*/
- if ( (conf->HTTPOverrideErrors ==0) || r->status < 400 ) {
+ if ( (conf->error_override ==0) || r->status < 400 ) {
/* read the body, pass it to the output filters */
while (ap_get_brigade(rp->input_filters,
bb,
}
}
- if ( conf->HTTPOverrideErrors ) {
+ if ( conf->error_override ) {
/* the code above this checks for 'OK' which is what the hook expects */
if ( r->status == HTTP_OK )
return OK;