# 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 -r 3482c069e050 -r f9661f56c717 src/http/ngx_http_parse.c --- a/src/http/ngx_http_parse.c Wed Jun 06 13:31:05 2018 +0300 +++ b/src/http/ngx_http_parse.c Thu May 24 12:06:35 2018 +0300 @@ -307,6 +307,11 @@ break; } + if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-' || ch == '.') + { + break; + } + switch (ch) { case ':': r->schema_end = p;