]> err.no Git - varnish/commitdiff
Fix for ticket 262: When we trim leading whitespace that was
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 09:59:21 +0000 (09:59 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 09:59:21 +0000 (09:59 +0000)
read-ahead, NUL the rxbuffer.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2801 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_httpconn.c

index dae3f49533e2b15316b221c90456183224954c85..4078f2ec34e2b99550d06fcf48755c675849926b 100644 (file)
@@ -63,6 +63,7 @@ htc_header_complete(txt *t)
                continue;
        if (*p == '\0') {
                t->e = t->b;
+               *t->e = '\0';
                return (0);
        }
        while (1) {