From 3898d6d9580a4921e270f8a1c1a35a9b90d0a823 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 16 Jan 2008 10:08:34 +0000 Subject: [PATCH] Fix ticket #179: non-ascii reason-phrase. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2345 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 771be806..6d1b0e3b 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -64,7 +64,7 @@ static unsigned char vctyptab[256] = { [' '] = C_SP, }; -#define vctyp(x, y) (vctyptab[(int)(x)] & (y)) +#define vctyp(x, y) (vctyptab[(unsigned)(x) & 0xff] & (y)) #define LOGMTX2(ax, bx, cx) [bx] = SLT_##ax##cx -- 2.39.5