From d0dfc987732a25ee1f2236526e2801f06678cda4 Mon Sep 17 00:00:00 2001 From: Jeff Terrace Date: Fri, 30 Jul 2010 13:44:07 -0400 Subject: [PATCH] Initialize method member to avoid falsely upgrading connections. Fixed Issue #7 --- http_parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http_parser.c b/http_parser.c index ac1b9d6..8872a1d 100644 --- a/http_parser.c +++ b/http_parser.c @@ -1548,4 +1548,5 @@ http_parser_init (http_parser *parser, enum http_parser_type t) parser->nread = 0; parser->upgrade = 0; parser->flags = 0; + parser->method = 0; }