wp-comments-post.php HTTP version
-
This needs to be changed from the hard coded HTTP 1.1 header to support HTTP 2 support:
if ('POST' != $_SERVER['REQUEST_METHOD']) { header('Allow: POST'); header('HTTP/1.1 405 Method Not Allowed'); header('Content-Type: text/plain'); exit; }
To:
if ('POST' != $_SERVER['REQUEST_METHOD']) { header('Allow: POST'); header($_SERVER['SERVER_PROTOCOL'] . ' 405 Method Not Allowed'); header('Content-Type: text/plain'); exit; }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘wp-comments-post.php HTTP version’ is closed to new replies.