[master] e2a4a05 Don't pipe PATCH

Federico G. Schwindt fgsch at lodoss.net
Mon Jul 4 16:20:09 CEST 2016


commit e2a4a056ca04a83fb0d24075503cb40408d0fd64
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Jul 4 14:45:43 2016 +0100

    Don't pipe PATCH
    
    pipe might receive a complete overhaul in the future but until then
    make sure we pass this by default.
    
    Prompted by simon on #varnish @ irc.linpro.no.

diff --git a/bin/varnishd/builtin.vcl b/bin/varnishd/builtin.vcl
index 259bebe..766d128 100644
--- a/bin/varnishd/builtin.vcl
+++ b/bin/varnishd/builtin.vcl
@@ -55,7 +55,8 @@ sub vcl_recv {
       req.method != "POST" &&
       req.method != "TRACE" &&
       req.method != "OPTIONS" &&
-      req.method != "DELETE") {
+      req.method != "DELETE" &&
+      req.method != "PATCH") {
         /* Non-RFC2616 or CONNECT which is weird. */
         return (pipe);
     }



More information about the varnish-commit mailing list