From 9b782471c689068652a870744784fb6b4d5c6757 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 11 Jul 2006 12:00:22 +0000 Subject: [PATCH] Pipe requests which come with an Expect header. XXX: document that error 417 "expectation failed" might be a more sensible policy. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@424 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/varnishd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index e16a72d4..ed4d775d 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -85,6 +85,9 @@ vcl_default(const char *bflag) " if (req.request != \"GET\" && req.request != \"HEAD\") {\n" " pipe;\n" " }\n" + " if (req.http.Expect) {\n" + " pipe;\n" + " }\n" " if (req.http.Authenticate || req.http.Cookie) {\n" " pass;\n" " }\n" -- 2.39.5