Loading modules/http2/h2_proxy_session.c +14 −12 Original line number Diff line number Diff line Loading @@ -242,7 +242,6 @@ static int add_header(void *table, const char *n, const char *v) static void process_proxy_header(h2_proxy_stream *stream, const char *n, const char *v) { request_rec *r = stream->r; static const struct { const char *name; ap_proxy_header_reverse_map_fn func; Loading @@ -254,12 +253,14 @@ static void process_proxy_header(h2_proxy_stream *stream, const char *n, const c { "Set-Cookie", ap_proxy_cookie_reverse_map }, { NULL, NULL } }; request_rec *r = stream->r; proxy_dir_conf *dconf; int i; dconf = ap_get_module_config(r->per_dir_config, &proxy_module); if (!dconf->preserve_host) { for (i = 0; transform_hdrs[i].name; ++i) { if (!ap_cstr_casecmp(transform_hdrs[i].name, n)) { dconf = ap_get_module_config(r->per_dir_config, &proxy_module); apr_table_add(r->headers_out, n, (*transform_hdrs[i].func)(r, dconf, v)); return; Loading @@ -272,6 +273,7 @@ static void process_proxy_header(h2_proxy_stream *stream, const char *n, const c stream->real_server_uri, stream->p_server_uri, v)); return; } } apr_table_add(r->headers_out, n, v); } Loading Loading
modules/http2/h2_proxy_session.c +14 −12 Original line number Diff line number Diff line Loading @@ -242,7 +242,6 @@ static int add_header(void *table, const char *n, const char *v) static void process_proxy_header(h2_proxy_stream *stream, const char *n, const char *v) { request_rec *r = stream->r; static const struct { const char *name; ap_proxy_header_reverse_map_fn func; Loading @@ -254,12 +253,14 @@ static void process_proxy_header(h2_proxy_stream *stream, const char *n, const c { "Set-Cookie", ap_proxy_cookie_reverse_map }, { NULL, NULL } }; request_rec *r = stream->r; proxy_dir_conf *dconf; int i; dconf = ap_get_module_config(r->per_dir_config, &proxy_module); if (!dconf->preserve_host) { for (i = 0; transform_hdrs[i].name; ++i) { if (!ap_cstr_casecmp(transform_hdrs[i].name, n)) { dconf = ap_get_module_config(r->per_dir_config, &proxy_module); apr_table_add(r->headers_out, n, (*transform_hdrs[i].func)(r, dconf, v)); return; Loading @@ -272,6 +273,7 @@ static void process_proxy_header(h2_proxy_stream *stream, const char *n, const c stream->real_server_uri, stream->p_server_uri, v)); return; } } apr_table_add(r->headers_out, n, v); } Loading