From f2b667ccf04e7933a50c82b3c87ac1fb90651f84 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 28 Jun 2006 16:58:21 +0000 Subject: [PATCH] Don't finish the sbuf in mode 3 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@256 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 01352f86..37cf0b8f 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -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); + } } -- 2.39.5