Accessing req and resp header values
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Jun 5 11:29:32 CEST 2008
In message <loom.20080604T232548-357 at post.gmane.org>, Alexander writes:
>Result:
>Variable 'req.http.User-Agent' not accessible in method 'vcl_deliver'
>
>I haven't found any documentation stating what variables are available in which
>functions, but so far I haven't been able to figure out any way of doing this
>short of messing with the hash and having unnecessary duplicates in the cache.
It's in the secret supplement to the master code book :-)
I can't remember why you do not have access to the request in vcl_deliver{}
there was a good reason at the time, but there may be better reasons to
fix that reason.
Please open a ticket for this, and we'll look at it.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list