Commit 06ffea87 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fold req.htt.host to lowercase by default.

parent 98dc1770
......@@ -35,6 +35,9 @@ vcl 4.0;
# Client side
sub vcl_recv {
if (req.http.host) {
set req.http.host = req.http.host.lower();
}
if (req.method == "PRI") {
/* This will never happen in properly formed traffic (see: RFC7540) */
return (synth(405));
......
......@@ -20,7 +20,7 @@ client c1 {
varnish v1 -vsl_catchup
process p1 -expect-text 1 1 {list length 64}
process p1 -expect-text 1 1 {list length 6}
process p1 -writehex 0c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment