MCPcopy Create free account
hub / github.com/apache/httpd / ap_headers_early

Function ap_headers_early

modules/metadata/mod_headers.c:933–957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931 return DECLINED;
932}
933static apr_status_t ap_headers_early(request_rec *r)
934{
935 headers_conf *dirconf = ap_get_module_config(r->per_dir_config,
936 &headers_module);
937
938 /* do the fixup */
939 if (dirconf->fixup_in->nelts) {
940 if (!do_headers_fixup(r, r->headers_in, dirconf->fixup_in, 1))
941 goto err;
942 }
943 if (dirconf->fixup_err->nelts) {
944 if (!do_headers_fixup(r, r->err_headers_out, dirconf->fixup_err, 1))
945 goto err;
946 }
947 if (dirconf->fixup_out->nelts) {
948 if (!do_headers_fixup(r, r->headers_out, dirconf->fixup_out, 1))
949 goto err;
950 }
951
952 return DECLINED;
953err:
954 ap_log_rerror(APLOG_MARK, APLOG_CRIT, 0, r, APLOGNO(01504)
955 "Regular expression replacement failed (replacement too long?)");
956 return HTTP_INTERNAL_SERVER_ERROR;
957}
958
959static const command_rec headers_cmds[] =
960{

Callers

nothing calls this directly

Calls 2

ap_get_module_configFunction · 0.85
do_headers_fixupFunction · 0.85

Tested by

no test coverage detected