I am trying to lowercase the query parameters and encounter a very strange
non-lowercasing bug in std. Consider:
sub vcl_rec {
set req.url = regsub(req.url,"([?].*)",std.tolower("\1"));
}
`curl 'http://localhost:8080/get?TEST=none'`
...
`varnishlog -d`
...
- ReqMethod GET
- ReqURL /get?TEST=none
- ReqProtocol HTTP/1.1
....
- ReqHeader Host: localhost:8080
- VCL_call RECV
- ReqURL /get?TEST=none
...
Not the expected lower case (should be /get?test=none)
Please note that the following works correctly:
sub vcl_rec {
set req.url = regsub(req.url,"([?].*)",std.tolower("?TEST=none"));
}
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc