Opened 11 years ago
Closed 11 years ago
#34131 closed enhancement (fixed)
Add support for HTTP/2 to status_header()
| Reported by: | johnbillion | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
any benefit to adding a wrapper func?