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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user