Passing the correct server protocol to the origin

Cloudflare does all requests to the origin using http/1.1 (see: 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.