From a57d98bccbe81d4939d29829a6497207dc203287 Mon Sep 17 00:00:00 2001 From: Igor Kalashnikov Date: Mon, 15 Feb 2016 18:55:52 +0300 Subject: [PATCH] unsigned char for http_parser_execute --- http_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_parser.c b/http_parser.c index 98e0b9f2..1c6314fe 100644 --- a/http_parser.c +++ b/http_parser.c @@ -1572,7 +1572,7 @@ size_t http_parser_execute (http_parser *parser, REEXECUTE(); } - if (!lenient && !IS_HEADER_CHAR(ch)) { + if (!lenient && !IS_HEADER_CHAR((unsigned char)ch)) { SET_ERRNO(HPE_INVALID_HEADER_TOKEN); goto error; }