Varnish 3.0.2 req.hash
Hugues Alary
hugues.alary at gmail.com
Fri Feb 10 22:00:40 CET 2012
2012/2/10 Roberto O. Fernández Crisial <roberto.fernandezcrisial at gmail.com>
> Hugues,
>
Hi Roberto,
Thank you for your answer.
>
Try this:
>
> set req.http.X-TEST = req.hash;
> set req.http.TEST = req.http.X-TEST;
>
> It should work.
>
Unfortunately the problem doesn't come from the syntax of "req.http.TEST"
but from req.hash. Here is the message:
Message from VCC-compiler:
Symbol not found: '*req.hash*' (expected type STRING_LIST):
('input' Line 219 Pos 31)
*set req.http.X-TEST* = *req.hash*;
------------------------------########-
Running VCC-compiler failed, exit 1
VCL compilation failed
I also tried to put that in my configuration:
set req.http.X-TEST = {""} + req.hash;
And, same error:
Message from VCC-compiler:
Symbol not found: '*req.hash*' (expected type STRING):
('input' Line 219 Pos 38)
* set req.http.X-TEST* = {""} + *req.hash*;
-------------------------------------########-
Running VCC-compiler failed, exit 1
VCL compilation failed
Do you have any other idea ?
> Good luck,
>
> Roberto (@rofc)
>
>
Thanks!
-Hugues
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120210/ed44bd02/attachment.html>
More information about the varnish-misc
mailing list