From 0e3d1a52146b5182b2d1645342b12ab776064857 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 21 Jun 2008 20:56:14 +0000 Subject: [PATCH] Avoid entirely git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2762 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_http.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 62f67755..fa23181d 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -33,7 +33,6 @@ #include "config.h" -#include #include #include #include @@ -219,7 +218,7 @@ http_GetHdr(const struct http *hp, const char *hdr, char **ptr) } if (ptr != NULL) { p = hp->hd[u].b + l; - while (isspace(*p)) + while (vct_issp(*p)) p++; *ptr = p; } @@ -275,7 +274,9 @@ http_GetHdrField(const struct http *hp, const char *hdr, const char *field, char return (0); } -/*--------------------------------------------------------------------*/ +/*-------------------------------------------------------------------- + * XXX: redo with http_GetHdrField() ? + */ const char * http_DoConnection(struct http *hp) @@ -291,12 +292,12 @@ http_DoConnection(struct http *hp) } ret = NULL; for (; *p; p++) { - if (isspace(*p)) + if (vct_issp(*p)) continue; if (*p == ',') continue; for (q = p + 1; *q; q++) - if (*q == ',' || isspace(*q)) + if (*q == ',' || vct_issp(*q)) break; u = pdiff(p, q); if (u == 5 && !strncasecmp(p, "close", u)) -- 2.39.5