From: phk Date: Fri, 13 Jul 2007 19:36:38 +0000 (+0000) Subject: Shave the previos commit a bit closer: don't write the HTTP response X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9291d3245d9bd8dfeedfe71a9c7feacb0411e155;p=varnish 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. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1695 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index d59ac6e2..e765be18 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -78,8 +78,6 @@ res_do_304(struct sess *sp) 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; }