diff src/http/ngx_http_parse.c @ 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 e3723f2a11b7
children 52b5ee64fe11
line wrap: on
line diff
--- 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;