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.

Built from https://develop.svn.wordpress.org/trunk@55210


git-svn-id: http://core.svn.wordpress.org/trunk@54743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb
2023-02-03 13:35:20 +00:00
parent 965fe8f209
commit 28358ab213
15 changed files with 32 additions and 32 deletions

View File

@@ -171,7 +171,7 @@ for ( $i = 1; $i <= $count; $i++ ) {
$content = explode( '--' . $boundary, $content );
$content = $content[2];
// Match case-insensitive content-transfer-encoding.
// Match case-insensitive Content-Transfer-Encoding.
if ( preg_match( '/Content-Transfer-Encoding: quoted-printable/i', $content, $delim ) ) {
$content = explode( $delim[0], $content );
$content = $content[1];