]> err.no Git - varnish/commitdiff
Polish
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Sep 2007 07:21:40 +0000 (07:21 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Sep 2007 07:21:40 +0000 (07:21 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2023 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index 661ef9668fe818287a05fe9ed194a1ff5823cb61..ef7237be384fdaed08fb716a8f6833291fc4f21a 100644 (file)
@@ -616,7 +616,6 @@ http_RecvPrep(struct http *hp)
        hp->rx_s = hp->ws->f;
        hp->rx_e = hp->rx_s;
        if (hp->pl_s != NULL) {
-               assert(hp->pl_s < hp->pl_e);
                l = pdiff(hp->pl_s, hp->pl_s);
                memmove(hp->rx_s, hp->pl_s, l);
                hp->rx_e = hp->rx_s + l;
@@ -857,7 +856,7 @@ http_CopyHome(struct worker *w, int fd, struct http *hp)
                        WSLH(w, htt, fd, hp, u);
                        continue;
                }
-               l = pdiff(hp->hd[u].b,  hp->hd[u].e);
+               l = pdiff(hp->hd[u].b, hp->hd[u].e);
                p = WS_Alloc(hp->ws, l + 1);
                if (p != NULL) {
                        WSLH(w, htt, fd, hp, u);