changeset 7292:f9661f56c717

Allowed digits, '+', '-', and '.' in scheme names as per RFC 3986.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 24 May 2018 12:06:35 +0300
parents 3482c069e050
children d588987701f4
files src/http/ngx_http_parse.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;