Make WordPress Core


Ignore:
Timestamp:
02/03/2023 01:33:18 PM (22 months 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/tests/functions/doEnclose.php

    r55029 r55210  
    266266            'mp4' => array(
    267267                'headers' => array(
    268                     'content-length' => 123,
    269                     'content-type'   => 'video/mp4',
     268                    'Content-Length' => 123,
     269                    'Content-Type'   => 'video/mp4',
    270270                ),
    271271            ),
     
    290290        return array(
    291291            'headers' => array(
    292                 'content-length' => 0,
    293                 'content-type'   => '',
     292                'Content-Length' => 0,
     293                'Content-Type'   => '',
    294294            ),
    295295        );
Note: See TracChangeset for help on using the changeset viewer.