[wp-trac] [WordPress Trac] #39066: `fetch_feed()` changes REST API response `Content-Type`
WordPress Trac
noreply at wordpress.org
Thu Jan 5 03:05:55 UTC 2017
#39066: `fetch_feed()` changes REST API response `Content-Type`
------------------------------+-----------------------
Reporter: dlh | Owner: rmccue
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7.1
Component: Feeds | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: rest-api
------------------------------+-----------------------
Changes (by rmccue):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"39681"]:
{{{
#!CommitTicketReference repository="" revision="39681"
Feeds: Don't override the Content-Type header inside fetc_feed()
SimplePie can set the Content-Type header automatically with the correct
charset for convenience, but we already force the charset to match the
site's, making it redundant at best. At worst, SimplePie incorrectly
overrides the content-type for non-HTML content (such as API requests).
Props dlh, stevenkword.
Fixes #39066.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39066#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list