Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986.

This commit is contained in:
Ruslan Ermilov 2018-05-24 12:06:35 +03:00
parent 1ef7b1ef61
commit c804eb7748

View File

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