Changes between Version 1 and Version 2 of Ticket #37863, comment 4
- Timestamp:
- 08/30/2016 01:39:33 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37863, comment 4
v1 v2 3 3 The code above is wrong. 4 4 5 1) Having a fallback to HTTP 1.0 is NEVER GUARANTEED to be supported on the HTTP server. The only way you as Word press is going to know what HTTP version is supported is through $_SERVER[SERVER_PROTOCOL]. Making the assumption that the HTTP server you are running on without even knowing it supports 1.0 is guessing.5 1) Having a fallback to HTTP 1.0 is NEVER GUARANTEED to be supported on the HTTP server. The only way you as WordPress is going to know what HTTP version is supported is through `$_SERVER['SERVER_PROTOCOL']`. Making the assumption that the HTTP server you are running on without even knowing it supports 1.0 is guessing. 6 6 7 7 2) There is no future support in place with this code. The code above falls apart as newer HTTP versions come out (HTTP 2.01, HTTP 3, etc) which then results in returning HTTP 1.0 error messages.