Commit d900cec96c322fb85a810b3476defa8e458fa2a8

Chris Bargren 2015-12-22T10:38:16

Updating http parser to accept a `+` in the schema

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/deps/http-parser/http_parser.c b/deps/http-parser/http_parser.c
index 2035302..b793d70 100644
--- a/deps/http-parser/http_parser.c
+++ b/deps/http-parser/http_parser.c
@@ -451,7 +451,7 @@ parse_url_char(enum state s, const char ch)
       break;
 
     case s_req_schema:
-      if (IS_ALPHA(ch)) {
+      if (IS_ALPHA(ch) || ch == '+') {
         return s;
       }