mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08: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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-' || ch == '.')
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case ':':
|
case ':':
|
||||||
r->schema_end = p;
|
r->schema_end = p;
|
||||||
|
Loading…
Reference in New Issue
Block a user