]> err.no Git - varnish/commitdiff
Change an assert() to diagnostic() since it negates the benefit we
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 21 Jun 2008 21:04:59 +0000 (21:04 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 21 Jun 2008 21:04:59 +0000 (21:04 +0000)
seek from the HTTP header indentification speedup.

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

varnish-cache/bin/varnishd/cache_http.c

index fa23181de0a9bddcd15af4cd3aeade809db57635..175081aef0a3ceba66eb4b361f9df2de951dcb3f 100644 (file)
@@ -207,7 +207,7 @@ http_GetHdr(const struct http *hp, const char *hdr, char **ptr)
        char *p;
 
        l = hdr[0];
-       assert(l == strlen(hdr + 1));
+       diagnostic(l == strlen(hdr + 1));
        assert(hdr[l] == ':');
        hdr++;
        u = http_findhdr(hp, l - 1, hdr);