comparison src/http/ngx_http_core_module.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 7f955d3b9a0d
children 81d49f85afed
comparison
equal deleted inserted replaced
7294:21ad2af3262c 7295:89430899c72a
2316 sr->background = (flags & NGX_HTTP_SUBREQUEST_BACKGROUND) != 0; 2316 sr->background = (flags & NGX_HTTP_SUBREQUEST_BACKGROUND) != 0;
2317 2317
2318 sr->unparsed_uri = r->unparsed_uri; 2318 sr->unparsed_uri = r->unparsed_uri;
2319 sr->method_name = ngx_http_core_get_method; 2319 sr->method_name = ngx_http_core_get_method;
2320 sr->http_protocol = r->http_protocol; 2320 sr->http_protocol = r->http_protocol;
2321 sr->schema = r->schema;
2321 2322
2322 ngx_http_set_exten(sr); 2323 ngx_http_set_exten(sr);
2323 2324
2324 sr->main = r->main; 2325 sr->main = r->main;
2325 sr->parent = r; 2326 sr->parent = r;