[4.0] 8c56d06 Old habits die hard.

Lasse Karstensen lkarsten at varnish-software.com
Tue Apr 1 15:09:51 CEST 2014


commit 8c56d063c1dfd5dbdafdeae26416f0bb4bce5288
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Thu Mar 20 13:11:55 2014 +0100

    Old habits die hard.
    
    req.request is now called req.method.

diff --git a/bin/varnishd/builtin.vcl b/bin/varnishd/builtin.vcl
index 71e01f7..f9d3527 100644
--- a/bin/varnishd/builtin.vcl
+++ b/bin/varnishd/builtin.vcl
@@ -57,7 +57,7 @@ sub vcl_recv {
     }
 
     /* We don't support chunked uploads, except when piping. */
-    if ((req.request == "POST" || req.request == "PUT") &&
+    if ((req.method == "POST" || req.method == "PUT") &&
       req.http.transfer-encoding ~ "chunked") {
         return(pipe);
     }



More information about the varnish-commit mailing list