[Varnish] #539: unable to compare two headers in vcl
Varnish
varnish-bugs at projects.linpro.no
Tue Aug 11 12:34:06 CEST 2009
#539: unable to compare two headers in vcl
----------------------+-----------------------------------------------------
Reporter: hamnis | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: critical | Keywords:
----------------------+-----------------------------------------------------
{{{
sub vcl_fetch {
if (obj.http.etag ~ req.http.if-none-match) {
error 304 "Not Modified";
}
}
}}}
causes compile error.
Message from VCC-compiler:
Expected CSTR got 'req.http.if-none-match'
(program line 255), at
(input Line 92 Pos 25)
if (obj.http.etag ~ req.http.if-none-match) {
------------------------######################---
Running VCC-compiler failed, exit 1
VCL compilation failed
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/539>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list