]> err.no Git - varnish/commitdiff
Fix 304 responses, they got messed up in the vcl_deliver() addition.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 13 Jul 2007 15:31:37 +0000 (15:31 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 13 Jul 2007 15:31:37 +0000 (15:31 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1694 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_response.c

index 0a0b1ba13dc36fa4b5625f9946d720ab0af86193..d59ac6e222398a9b4e3931dd5611970ecdca48a2 100644 (file)
@@ -69,8 +69,7 @@ res_do_304(struct sess *sp)
 
        http_ClrHeader(sp->http);
        sp->http->logtag = HTTP_Tx;
-       http_SetResp(sp->http,
-           "HTTP/1.1", "304", "Not Modified");
+       http_SetResp(sp->http, "HTTP/1.1", "304", "Not Modified");
        TIM_format(sp->t_req, lm);
        http_PrintfHeader(sp->wrk, sp->fd, sp->http, "Date: %s", lm);
        http_SetHeader(sp->wrk, sp->fd, sp->http, "Via: 1.1 varnish");
@@ -81,8 +80,7 @@ res_do_304(struct sess *sp)
                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);
-       if (WRK_Flush(sp->wrk))
-               vca_close_session(sp, "remote closed");
+       sp->wantbody = 0;
 }
 
 /*--------------------------------------------------------------------*/