Re: what if a header I'm testing is missing?

2008-03-21 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, "Mich ael S. Fischer" writes: >> and I'm wondering if the first part of this is unnecessary. For >> example, what happens if I have this... >> >> if (req.http.Cookie ~ "(__ac=|_ZopeId=)") { >> pass; >> } >> >> but no Cookie header is present i

Re: what if a header I'm testing is missing?

2008-03-21 Thread Michael S. Fischer
On Fri, Mar 21, 2008 at 3:36 AM, Ricardo Newbery <[EMAIL PROTECTED]> wrote: > and I'm wondering if the first part of this is unnecessary. For > example, what happens if I have this... > > > if (req.http.Cookie ~ "(__ac=|_ZopeId=)") { > pass; > } > > but no Cookie header is p

what if a header I'm testing is missing?

2008-03-21 Thread Ricardo Newbery
This is a minor thing but I'm wondering if I'm making an incorrect assumption. In my vcl file, I have lines similar to the following... if (req.http.Cookie && req.http.Cookie ~ "(__ac=|_ZopeId=)") { pass; } and I'm wondering if the first part of this is unnecessary. For