Passing the correct server protocol to the origin

Cloudflare does all requests to the origin using http/1.1 (see: https://support.cloudflare.com/hc/en-us/articles/214534978-Are-the-HTTP-2-or-SPDY-protocols-supported-between-Cloudflare-and-the-origin-server-) which is totally fine.

The problem however is that e.g. in PHP:
$_SERVER[‘SERVER_PROTOCOL’] will now return http/1.1 instead of http/2 even when the request is served with http2 by cloudflare.
This matters for setting the status header, e.g. header( ‘http/1.1 404 Not found’ );

Are there any plans to “forward” the real protocol used?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.