r424 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Jul 11 14:00:22 CEST 2006


Author: phk
Date: 2006-07-11 14:00:22 +0200 (Tue, 11 Jul 2006)
New Revision: 424

Modified:
   trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Pipe requests which come with an Expect header.

XXX: document that 
	error 417 "expectation failed"
might be a more sensible policy.



Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c	2006-07-11 11:41:31 UTC (rev 423)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c	2006-07-11 12:00:22 UTC (rev 424)
@@ -85,6 +85,9 @@
 	    "    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"




More information about the varnish-commit mailing list