]> err.no Git - varnish/commitdiff
Don't finish the sbuf in mode 3
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 28 Jun 2006 16:58:21 +0000 (16:58 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 28 Jun 2006 16:58:21 +0000 (16:58 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@256 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index 01352f86c7350950c6e90af2aa8894b61973fab9..37cf0b8fdf52b96fbd4b90cc47b7fda8f792f7dc 100644 (file)
@@ -352,7 +352,6 @@ http_RecvHead(struct http *hp, int fd, struct event_base *eb, http_callback_f *f
 {
 
        assert(hp != NULL);
-       VSL(SLT_Debug, fd, "%s s %p t %p v %p", __func__, hp->s, hp->t, hp->v);
        assert(hp->t == hp->s || hp->t == hp->v);       /* XXX pipelining */
        hp->callback = func;
        hp->arg = arg;
@@ -423,7 +422,8 @@ http_BuildSbuf(int fd, int resp, struct sbuf *sb, struct http *hp)
                sbuf_cat(sb, hp->hdr[u]);
                sbuf_cat(sb, "\r\n");
        }
-       if (resp != 3)
+       if (resp != 3) {
                sbuf_cat(sb, "\r\n");
-       sbuf_finish(sb);
+               sbuf_finish(sb);
+       }
 }