mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 03:34:33 +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:
@@ -1864,7 +1864,7 @@ class SimplePie
|
||||
}
|
||||
|
||||
/**
|
||||
* Send the content-type header with correct encoding
|
||||
* Send the Content-Type header with correct encoding
|
||||
*
|
||||
* This method ensures that the SimplePie-enabled page is being served with
|
||||
* the correct {@link http://www.iana.org/assignments/media-types/ mime-type}
|
||||
@@ -1886,7 +1886,7 @@ class SimplePie
|
||||
{
|
||||
if (!headers_sent())
|
||||
{
|
||||
$header = "Content-type: $mime;";
|
||||
$header = "Content-Type: $mime;";
|
||||
if ($this->get_encoding())
|
||||
{
|
||||
$header .= ' charset=' . $this->get_encoding();
|
||||
|
||||
Reference in New Issue
Block a user