We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c1f567 commit 0b1e6e4Copy full SHA for 0b1e6e4
deps/http-parser/http_parser.c
@@ -99,7 +99,7 @@ do { \
99
FOR##_mark = NULL; \
100
} \
101
} while (0)
102
-
+
103
/* Run the data callback FOR and consume the current byte */
104
#define CALLBACK_DATA(FOR) \
105
CALLBACK_DATA_(FOR, p - FOR##_mark, p - data + 1)
@@ -444,14 +444,17 @@ parse_url_char(enum state s, const char ch)
444
return s_req_path;
445
}
446
447
+ /* The schema must start with an alpha character. After that, it may
448
+ * consist of digits, '+', '-' or '.', followed by a ':'.
449
+ */
450
if (IS_ALPHA(ch)) {
451
return s_req_schema;
452
453
454
break;
455
456
case s_req_schema:
- if (IS_ALPHA(ch) || ch == '+') {
457
+ if (IS_ALPHANUM(ch) || ch == '+' || ch == '-' || ch == '.') {
458
return s;
459
460
0 commit comments