]> err.no Git - varnish/commitdiff
Shave the previos commit a bit closer: don't write the HTTP response
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 13 Jul 2007 19:36:38 +0000 (19:36 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 13 Jul 2007 19:36:38 +0000 (19:36 +0000)
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

varnish-cache/bin/varnishd/cache_response.c

index d59ac6e222398a9b4e3931dd5611970ecdca48a2..e765be181a5f7bfc3634f1d6fc4cb90cc540549e 100644 (file)
@@ -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;
 }