Commit adad2e1a authored by Nils Goroll's avatar Nils Goroll

sanity check also the urls to self

to fail earlier for a bug exposed by this test which surfaces as garbled
URLs.
parent ee8a4687
...@@ -59,7 +59,8 @@ varnish v1 -arg "-a 127.0.0.1:0 -a self=${tmpdir}/v1.sock" -vcl+backend { ...@@ -59,7 +59,8 @@ varnish v1 -arg "-a 127.0.0.1:0 -a self=${tmpdir}/v1.sock" -vcl+backend {
set req.url = regsub(req.url, set req.url = regsub(req.url,
"^/(O[GP])[fp]$", "/\1"); "^/(O[GP])[fp]$", "/\1");
} }
elsif (local.socket == "self") { elsif (local.socket == "self" &&
req.url ~ "^/O?[GP]$") {
# OK # OK
} }
else { else {
......
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