HTTP API: Fix request header inconsistencies.

This changeset improves the consistency in capitalization of fetching and outputting of request headers. It also updates occurrences found in some docblocks.

Props johnjamesjacoby, costdev, audrasjb, petitphp, mhkuu, SergeyBiryukov.
Fixes #54225.


git-svn-id: https://develop.svn.wordpress.org/trunk@55210 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2023-02-03 13:33:18 +00:00
parent 4b71b1565a
commit 8fbe21a37a
29 changed files with 189 additions and 189 deletions

View File

@@ -36,7 +36,7 @@ if ( isset($_GET['201-location']) ) {
}
if ( isset($_GET['header-check']) ) {
$out = array();
header("Content-type: text/plain");
header("Content-Type: text/plain");
foreach ( $_SERVER as $key => $value ) {
if ( stripos($key, 'http') === 0 ) {
$key = strtolower(substr($key, 5));
@@ -63,7 +63,7 @@ if ( isset( $_GET['post-redirect-to-method'] ) ) {
echo $method;
exit;
}
if ( isset( $_GET['location-with-200'] ) ) {