Describe the bug
ProxyHeaderModule is currently setting the SERVER_PROTOCOL variable based on x-forwarded-proto.
This variable is should be used to denote the HTTP protocol (i.e. HTTP/1.1 or HTTP2) and not the scheme (HTTP vs HTTPS).
IIS/ASP.NET use the HTTPS boolean server variable for the scheme.
To Reproduce
- send a request to any controller action with http scheme, adding a X-Forwarded-Proto=https header
- in the action check context..Request.RequestUri.Scheme
- value should be https but returns http