#54404 closed defect (bug) (fixed)
Incorrect protocol with HTTP/3
Reported by: | malthert | Owned by: | davidbaumwald |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bootstrap/Load | Keywords: | good-first-bug has-patch commit |
Focuses: | Cc: |
Description
wp-includes/load.php
function wp_get_server_protocol:
<?php if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ), true ) ) { $protocol = 'HTTP/1.0';
Chrome Carnary already supports HTTP/3 (since a long time), so this should be fixed as it returns the incorrect protocol.
Change History (9)
#1
@
3 years ago
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to Future Release
- Version trunk deleted
This ticket was mentioned in PR #1848 on WordPress/wordpress-develop by kkmuffme.
3 years ago
#2
- Keywords has-patch added; needs-patch removed
#3
@
3 years ago
- Keywords needs-patch added; has-patch removed
@johnbillion added the pull request, please merge.
#5
@
3 years ago
- Milestone changed from Future Release to 5.9
Per the Wikipedia article on HTTP/3:
As of November 2021, the HTTP/3 protocol is still officially an Internet Draft, but is already supported by 74% of running web browsers and, according to W3Techs, 23% of the top 10 million websites. It has been supported by Google Chrome (including Chrome for Android, and Microsoft Edge, which is based on it) since April 2020 and by Mozilla Firefox since May 2021. Safari 14 (on macOS Big Sur and iOS 14) has also implemented the protocol but support is hidden behind a feature flag.
Seems like a good fit for 5.9.
dream-encode commented on PR #1848:
3 years ago
#9
Committed to core via changeset https://core.trac.wordpress.org/changeset/52087
Trac ticket: https://core.trac.wordpress.org/ticket/54404#ticket