[PATCH] HTTP/2: Make $scheme variable return :scheme pseudo-header value

Valentin V. Bartenev vbart at nginx.com
Wed Feb 22 14:47:52 UTC 2017


On Wednesday 22 February 2017 14:30:21 Chris Branch via nginx-devel wrote:
> # HG changeset patch
> # User Chris Branch <cbranch at cloudflare.com>
> # Date 1487773385 0
> #      Wed Feb 22 14:23:05 2017 +0000
> # Node ID 2d050c8c2e688c26f4796a09c728c85678c611b4
> # Parent  87cf6ddb41c216876d13cffa5e637a61b159362c
> HTTP/2: Make $scheme variable return :scheme pseudo-header value.
> 
> This is relevant for plaintext HTTP/2 as well as HTTP/2 over TLS using
> opportunistic security, as described in:
> https://tools.ietf.org/html/draft-ietf-httpbis-http2-encryption
> 
[..]

This patch creates inconsistency in behavior of the $scheme variable for
HTTP/1.x and HTTP/2.  Potentially, it can also break some existing setups.

IMHO, it's better to introduce another variable.

  wbr, Valentin V. Bartenev



More information about the nginx-devel mailing list