Bug: request.servervariables server_protocol doesn't report HTTP/2
On IIS 10, when serving a page over HTTP/2, calling Request.ServerVariables["SERVER_PROTOCOL"] returns HTTPS/1.1 and not HTTPS/2.0.
This makes it impossible to accurately identify the protocol version in use at runtime.
Philip Gray commented
I just checked this again - still not reporting correctly. Is there some workaround that I'm not aware of?
I second this.
I wrote about this back in 2016: https://forums.iis.net/t/1233612.aspx?SERVER_PROTOCOL+on+IIS+10+not+returning+HTTP+2+0