Permalink
Browse files

Minor speed improvment

  • Loading branch information...
1 parent 1d3a0ec commit 7f1b191d6fce976cd44ff4463bca7c28762e4561 Bertrand Paquet committed Jul 24, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 http_parser.c
View
@@ -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:

0 comments on commit 7f1b191

Please sign in to comment.