[wp-trac] [WordPress Trac] #39066: `fetch_feed()` changes REST API response `Content-Type`

WordPress Trac noreply at wordpress.org
Thu Jan 5 03:08:15 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 fixed-major  |     Focuses:  rest-api
------------------------------------------+-----------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39683"]:
 {{{
 #!CommitTicketReference repository="" revision="39683"
 Feeds: Don't override the Content-Type header inside `fetch_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, rmccue.
 Merges [39681] to the 4.7 branch.
 Fixes #39066.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39066#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list