[wp-trac] [WordPress Trac] #32024: XML Feed has wrong 'Content-Type'

WordPress Trac noreply at wordpress.org
Mon Apr 20 10:21:32 UTC 2015


#32024: XML Feed has wrong 'Content-Type'
--------------------------+------------------------------
 Reporter:  pvdl          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Feeds         |     Version:  4.1.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by dd32):

 * type:  enhancement => defect (bug)


Comment:

 This is caused by #14348, and as such only occurs on HEAD requests.

 For example:
 {{{
 $ curl -I https://dd32.id.au/feed/ | grep 'Content-Type'
 Content-Type: text/html; charset=UTF-8
 $ curl -i https://dd32.id.au/feed/ | grep 'Content-Type'
 Content-Type: text/xml; charset=UTF-8
 }}}

 with cURL, `-I` is a HEAD request, while `-i` is a GET request with
 headers shown.

 I'm not sure what the expected behaviour should be here, obviously the
 feed headers should be shown, but we're exiting far earlier than the
 template is included.

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


More information about the wp-trac mailing list