From: phk Date: Tue, 25 Apr 2006 07:10:36 +0000 (+0000) Subject: reset header count before we dissect X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b5c4adc4c6b64510e302560405fbcf009c8eaa1;p=varnish reset header count before we dissect git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@150 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 3412db76..a4957c20 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -202,6 +202,7 @@ http_Dissect(struct http *hp, int fd, int rr) if (*p == '\r') p++; + hp->nhdr = 0; for (; p < hp->v; p = r) { q = strchr(p, '\n'); assert(q != NULL); @@ -346,6 +347,8 @@ http_BuildSbuf(int resp, struct sbuf *sb, struct http *hp) for (u = 0; u < hp->nhdr; u++) { if (http_supress(hp->hdr[u], resp)) continue; + if (0) + VSL(SLT_Debug, 0, "Build %s", hp->hdr[u]); sbuf_cat(sb, hp->hdr[u]); sbuf_cat(sb, "\r\n"); }