From 1af1081e1ecf36ca003854226622f3a5b517f014 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 21 Jun 2008 21:04:59 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5