Make WordPress Core


Ignore:
Timestamp:
02/03/2023 01:33:18 PM (17 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/admin/includesFile.php

    r55031 r55210  
    157157            ),
    158158            'headers'  => array(
    159                 'content-disposition' => 'attachment; filename="filename-from-content-disposition-header.txt"',
     159                'Content-Disposition' => 'attachment; filename="filename-from-content-disposition-header.txt"',
    160160            ),
    161161        );
     
    175175            ),
    176176            'headers'  => array(
    177                 'content-disposition' => 'attachment; filename="../../filename-from-content-disposition-header.txt"',
     177                'Content-Disposition' => 'attachment; filename="../../filename-from-content-disposition-header.txt"',
    178178            ),
    179179        );
     
    193193            ),
    194194            'headers'  => array(
    195                 'content-disposition' => 'attachment; filename=filename-from-content-disposition-header.txt',
     195                'Content-Disposition' => 'attachment; filename=filename-from-content-disposition-header.txt',
    196196            ),
    197197        );
     
    242242            ),
    243243            'headers'  => array(
    244                 'content-disposition' => 'filename="filename-from-content-disposition-header.txt"',
     244                'Content-Disposition' => 'filename="filename-from-content-disposition-header.txt"',
    245245            ),
    246246        );
     
    260260            ),
    261261            'headers'  => array(
    262                 'content-disposition' => 'inline; filename="filename-from-content-disposition-header.txt"',
     262                'Content-Disposition' => 'inline; filename="filename-from-content-disposition-header.txt"',
    263263            ),
    264264        );
     
    278278            ),
    279279            'headers'  => array(
    280                 'content-disposition' => 'form-data; name="file"; filename="filename-from-content-disposition-header.txt"',
     280                'Content-Disposition' => 'form-data; name="file"; filename="filename-from-content-disposition-header.txt"',
    281281            ),
    282282        );
Note: See TracChangeset for help on using the changeset viewer.