Commit 2f2575c002e971f28ac6eb7d4b71f6736b060e0f

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;
       }