X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_headers_api.c;fp=http_headers_api.c;h=9fd3b752666dfb299b945a43f72223b6b3e1ff06;hp=4e65b1d25f861ce1f0170f1b628d5b9bd53101e8;hb=d92a99b21f8fd9a43a7ff0a379533bfeb82817a6;hpb=fc50bcc3820d4528bb5fcf3146ac4d23b20b33c8 diff --git a/http_headers_api.c b/http_headers_api.c index 4e65b1d..9fd3b75 100644 --- a/http_headers_api.c +++ b/http_headers_api.c @@ -358,7 +358,7 @@ PHP_HTTP_API STATUS _http_parse_headers_ex(const char *header, HashTable *header const char *key = header; /* skip leading ws */ - while (keylen && HTTP_IS_CTYPE(space, *key)) --keylen && ++key; + while (keylen && HTTP_IS_CTYPE(space, *key)) --keylen, ++key; /* skip trailing ws */ while (keylen && HTTP_IS_CTYPE(space, key[keylen - 1])) --keylen;