[Varnish] #473: Small errors in example code.

Varnish varnish-bugs at projects.linpro.no
Fri Mar 20 11:31:19 CET 2009


#473: Small errors in example code.
--------------------+-------------------------------------------------------
 Reporter:  rhalff  |        Type:  documentation
   Status:  new     |    Priority:  normal       
Milestone:          |   Component:  documentation
  Version:  trunk   |    Severity:  normal       
 Keywords:          |  
--------------------+-------------------------------------------------------
 Hi, at his page in the wiki:Introduction

 Some code examples are wrong:

 {{{
  if (req.request == 'POST') {
      pass;
  }
 }}}

 should be with double quotes:
 {{{
  if (req.request == "POST") {
      pass;
  }
 }}}

 And there is a missing ';' in this piece of code:
 {{{
  if (req.request == "GET" && req.url ~ "^/static/") {
      unset req.http.cookie;
      unset req.http.Authorization
      lookup;
  }
 }}}

 I've used this page to build my own config file,
 so copying and pasting this code will result in unnecessary errors.

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/473>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list