mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
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:
@@ -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'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user