Make WordPress Core


Ignore:
Timestamp:
02/03/2023 01:33:18 PM (2 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/data/WPHTTP-testcase-redirection-script.php

    r47122 r55210  
    3737if ( isset($_GET['header-check']) ) {
    3838    $out = array();
    39     header("Content-type: text/plain");
     39    header("Content-Type: text/plain");
    4040    foreach ( $_SERVER as $key => $value ) {
    4141        if ( stripos($key, 'http') === 0 ) {
     
    6464    echo $method;
    6565    exit;
    66    
     66
    6767}
    6868
Note: See TracChangeset for help on using the changeset viewer.