req.url value replacement issue

Crowder, Travis Travis.Crowder at penton.com
Fri Sep 6 16:30:06 CEST 2013


I was working to replace a value in req.url in vcl_recv and I was having some issues getting a new value into req.url.  I tried replacing it with nothing via set req.url = "" and I also tried using regsub.  It turns out that if you try to set req.url to an empty value, nothing happens.  I ended up having to use set req.url = "/";

Is this expected and documented behavior?

-Travis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130906/5b2c9d19/attachment.html>


More information about the varnish-misc mailing list