Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor speed improvment

  • Loading branch information...
commit 7f1b191d6fce976cd44ff4463bca7c28762e4561 1 parent 1d3a0ec
Bertrand Paquet authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 http_parser.c
View
8 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:
Please sign in to comment.
Something went wrong with that request. Please try again.