Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 7295:89430899c72a
Added r->schema.
For HTTP/1, it keeps scheme from the absolute form of URI.
For HTTP/2, the :scheme request pseudo-header field value.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 07 Jun 2018 20:01:41 +0300 |
parents | 21ad2af3262c |
children | e45f09198dab |
comparison
equal
deleted
inserted
replaced
7294:21ad2af3262c | 7295:89430899c72a |
---|---|
985 | 985 |
986 if (ngx_http_process_request_uri(r) != NGX_OK) { | 986 if (ngx_http_process_request_uri(r) != NGX_OK) { |
987 return; | 987 return; |
988 } | 988 } |
989 | 989 |
990 if (r->schema_end) { | |
991 r->schema.len = r->schema_end - r->schema_start; | |
992 r->schema.data = r->schema_start; | |
993 } | |
994 | |
990 if (r->host_end) { | 995 if (r->host_end) { |
991 | 996 |
992 host.len = r->host_end - r->host_start; | 997 host.len = r->host_end - r->host_start; |
993 host.data = r->host_start; | 998 host.data = r->host_start; |
994 | 999 |