Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #37863, comment 4


Ignore:
Timestamp:
08/30/2016 01:39:33 AM (8 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37863, comment 4

    v1 v2  
    33The code above is wrong.
    44
    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.
     51) 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.
    66
    772) 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.