[wp-trac] [WordPress Trac] #34131: Add support for HTTP/2 to status_header()
WordPress Trac
noreply at wordpress.org
Fri Oct 2 16:03:29 UTC 2015
#34131: Add support for HTTP/2 to status_header()
-------------------------+-----------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.4
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------
The `status_header()` function only outputs one of `HTTP/1.0 {status}` or
`HTTP/1.1 {status}` based on the requested protocol in
`$_SERVER['SERVER_PROTOCOL']`.
This function should also support `HTTP/2` and `HTTP/2.0` (Nginx trunk is
currently using `HTTP/2.0` which [https://trac.nginx.org/nginx/ticket/800
I'm not sure is correct]).
In addition, `$_SERVER['SERVER_PROTOCOL']` is used in three other places
in core, so these should be updated too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34131>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list