mirror of
https://github.com/nginx/nginx.git
synced 2026-11-02 09:00:15 -06:00
Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986.
This commit is contained in:
1 parent
1ef7b1ef61
commit
c804eb7748
1 file changed
+5
@@ -307,6 +307,11 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
|
||||
break;
|
||||
}
|
||||
|
||||
if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-' || ch == '.')
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
switch (ch) {
|
||||
case ':':
|
||||
r->schema_end = p;
|
||||
|
||||
Reference in new issue
Block a user