]> err.no Git - varnish/commitdiff
reset header count before we dissect
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Apr 2006 07:10:36 +0000 (07:10 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Apr 2006 07:10:36 +0000 (07:10 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@150 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index 3412db76ffff9534fcb18500a573af8ce74c5816..a4957c20e62d1a0931838edf2be28aba9ff5bbec 100644 (file)
@@ -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");
        }