# HG changeset patch # User Ruslan Ermilov # Date 1527152795 -10800 # Node ID f9661f56c717efea40ce2b894ad7a75dbeb708fe # Parent 3482c069e050592f074dfd0e8222efae770fbbbd Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986. diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -307,6 +307,11 @@ ngx_http_parse_request_line(ngx_http_req break; } + if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-' || ch == '.') + { + break; + } + switch (ch) { case ':': r->schema_end = p;