From: phk Date: Sat, 21 Jun 2008 21:04:59 +0000 (+0000) Subject: Change an assert() to diagnostic() since it negates the benefit we X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1af1081e1ecf36ca003854226622f3a5b517f014;p=varnish Change an assert() to diagnostic() since it negates the benefit we seek from the HTTP header indentification speedup. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2764 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index fa23181d..175081ae 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -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);