Skip to content
Permalink
Browse files

Fold req.htt.host to lowercase by default.

  • Loading branch information...
bsdphk committed Sep 9, 2019
1 parent 98dc177 commit 06ffea8738b07b24de8ed0cd369f9229783b04ab
Showing with 4 additions and 1 deletion.
  1. +3 −0 bin/varnishd/builtin.vcl
  2. +1 −1 bin/varnishtest/tests/u00010.vtc
@@ -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

0 comments on commit 06ffea8

Please sign in to comment.
You can’t perform that action at this time.