aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2018-06-07 20:01:41 +0300
committerRuslan Ermilov <ru@nginx.com>2018-06-07 20:01:41 +0300
commitf11a9cbdd0f5806131e4308d2ce98a2a97ca4007 (patch)
tree47bbe8b8fc937f6ebf68c5cc3b2cecaeb4f80169 /src/http/ngx_http_core_module.c
parent70b6e7a299e6488c2f59f1768c600921bd08a2d7 (diff)
downloadnginx-f11a9cbdd0f5806131e4308d2ce98a2a97ca4007.tar.gz
nginx-f11a9cbdd0f5806131e4308d2ce98a2a97ca4007.zip
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.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 2d8fdb88e..c57ec00ce 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -2318,6 +2318,7 @@ ngx_http_subrequest(ngx_http_request_t *r,
sr->unparsed_uri = r->unparsed_uri;
sr->method_name = ngx_http_core_get_method;
sr->http_protocol = r->http_protocol;
+ sr->schema = r->schema;
ngx_http_set_exten(sr);