From 7f1b191d6fce976cd44ff4463bca7c28762e4561 Mon Sep 17 00:00:00 2001 From: Bertrand Paquet Date: Wed, 25 Jul 2012 00:13:54 +0200 Subject: [PATCH] Minor speed improvment --- http_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http_parser.c b/http_parser.c index 8784af6..3671df2 100644 --- a/http_parser.c +++ b/http_parser.c @@ -486,14 +486,14 @@ parse_url_char(enum state s, const char ch) return s_req_query_string_start; } - if (IS_USERINFO_CHAR(ch) || ch == '[' || ch == ']') { - return s_req_host; - } - if (ch == '@') { return s_req_host_with_at; } + if (IS_USERINFO_CHAR(ch) || ch == '[' || ch == ']') { + return s_req_host; + } + break; case s_req_path: