Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
7291:3482c069e050 | 7292:f9661f56c717 |
---|---|
305 c = (u_char) (ch | 0x20); | 305 c = (u_char) (ch | 0x20); |
306 if (c >= 'a' && c <= 'z') { | 306 if (c >= 'a' && c <= 'z') { |
307 break; | 307 break; |
308 } | 308 } |
309 | 309 |
310 if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-' || ch == '.') | |
311 { | |
312 break; | |
313 } | |
314 | |
310 switch (ch) { | 315 switch (ch) { |
311 case ':': | 316 case ':': |
312 r->schema_end = p; | 317 r->schema_end = p; |
313 state = sw_schema_slash; | 318 state = sw_schema_slash; |
314 break; | 319 break; |