[Varnish] #1309: req.url is not writable in VCL sub vcl_miss

Varnish varnish-bugs at varnish-cache.org
Fri May 24 18:19:05 CEST 2013


#1309: req.url is not writable in VCL sub vcl_miss
-------------------------+----------------------
 Reporter:  raymondjiii  |       Type:  defect
   Status:  new          |   Priority:  normal
Milestone:               |  Component:  varnishd
  Version:  trunk        |   Severity:  normal
 Keywords:               |
-------------------------+----------------------
 The documentation at:
 https://www.varnish-software.com/static/book/VCL_functions.html

 Shows that req.url is R/W in sub vcl_miss.

 If I have the simple VCL code

 sub vcl_miss {

   set req.url = std.toupper(req.url);
 }

 Now view the URL on the backend server and it has not been converted to
 uppercase.


 Move that one line to sub vcl_hash and again view the URL on the backend
 server and the URL is fully uppercase.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1309>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list