Opened 9 years ago
Closed 9 years ago
#34131 closed enhancement (fixed)
Add support for HTTP/2 to status_header()
Reported by: | johnbillion | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
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 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.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
any benefit to adding a wrapper func?