Commit 2b95e1fe authored by Nils Goroll's avatar Nils Goroll Committed by Geoff Simmons

sanity check also the urls to self

to fail earlier for a bug exposed by this test which surfaces as garbled
URLs.
parent 30d8a8c7
......@@ -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,
"^/(O[GP])[fp]$", "/\1");
}
elsif (local.socket == "self") {
elsif (local.socket == "self" &&
req.url ~ "^/O?[GP]$") {
# OK
}
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