Make WordPress Core


Ignore:
Timestamp:
02/03/2023 01:33:18 PM (13 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/rest-api/rest-widgets-controller.php

    r54997 r55210  
    413413    public function mocked_rss_response() {
    414414        $single_value_headers = array(
    415             'content-type' => 'application/rss+xml; charset=UTF-8',
     415            'Content-Type' => 'application/rss+xml; charset=UTF-8',
    416416            'link'         => '<https://wordpress.org/news/wp-json/>; rel="https://api.w.org/"',
    417417        );
Note: See TracChangeset for help on using the changeset viewer.