mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986.
This commit is contained in:
parent
1ef7b1ef61
commit
c804eb7748
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user