Pipe PUTs through Varnish by default.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Dec 2015 00:27:42 +0000 (01:27 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Dec 2015 00:27:42 +0000 (01:27 +0100)
doc/README

index 2646d3e5f789f28d826777ef433a28d11e3ddbf4..42d467cebac4044c883ff89dc75fb58056999858 100644 (file)
@@ -15,6 +15,9 @@ backend pr0n {
 sub vcl_recv {
     if (req.http.host ~ "^pr0n\.sesse\.net(:[0-9]+)?$") {
         set req.backend_hint = pr0n;
 sub vcl_recv {
     if (req.http.host ~ "^pr0n\.sesse\.net(:[0-9]+)?$") {
         set req.backend_hint = pr0n;
+        if (req.method == "PUT") {
+            return (pipe);
+        }
     }
 }
 
     }
 }