r1695 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Jul 13 21:36:39 CEST 2007


Author: phk
Date: 2007-07-13 21:36:38 +0200 (Fri, 13 Jul 2007)
New Revision: 1695

Modified:
   trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
Shave the previos commit a bit closer: don't write the HTTP response
only to throw it away later and then rewrite it again after giving
vcl_deliver() the chance to munge it.


Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c	2007-07-13 15:31:37 UTC (rev 1694)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c	2007-07-13 19:36:38 UTC (rev 1695)
@@ -78,8 +78,6 @@
 	http_PrintfHeader(sp->wrk, sp->fd, sp->http, "Last-Modified: %s", lm);
 	if (sp->doclose != NULL)
 		http_SetHeader(sp->wrk, sp->fd, sp->http, "Connection: close");
-	WRK_Reset(sp->wrk, &sp->fd);
-	sp->wrk->acct.hdrbytes += http_Write(sp->wrk, sp->http, 1);
 	sp->wantbody = 0;
 }
 




More information about the varnish-commit mailing list