https://bz.apache.org/bugzilla/show_bug.cgi?id=58231
--- Comment #8 from Luca Toscano <[email protected]> --- The following seems to remove the Vary: Host header combination from mod_rewrite and <If> expression evaluation: Index: modules/mappers/mod_rewrite.c =================================================================== --- modules/mappers/mod_rewrite.c (revision 1808672) +++ modules/mappers/mod_rewrite.c (working copy) @@ -2035,7 +2035,10 @@ case 'S': if (!strcmp(var, "HTTP_HOST")) { - result = lookup_header("Host", ctx); + /* Skip the 'Vary: Host' header combination + * as indicated in rfc7231 section-7.1.4 + */ + result = apr_table_get(ctx->r->headers_in, "Host"); } break; Index: server/util_expr_eval.c =================================================================== --- server/util_expr_eval.c (revision 1808672) +++ server/util_expr_eval.c (working copy) @@ -1606,7 +1606,12 @@ return ""; name = req_header_header_names[index]; - add_vary(ctx, name); + /* Skip the 'Vary: Host' header combination + * as indicated in rfc7231 section-7.1.4 + */ + if (strcmp(name, "Host")){ + add_vary(ctx, name); + } return apr_table_get(ctx->r->headers_in, name); } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
