[wp-trac] [WordPress Trac] #51324: sitemap.xml and sitemap-xml headers return html as content type
WordPress Trac
noreply at wordpress.org
Mon Feb 28 18:33:45 UTC 2022
#51324: sitemap.xml and sitemap-xml headers return html as content type
---------------------------+------------------------------
Reporter: superpoincare | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Sitemaps | Version: 5.5
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
---------------------------+------------------------------
Changes (by SergeyBiryukov):
* resolution: invalid => wontfix
Comment:
Replying to [comment:3 RavanH]:
> This ticket is for WordPress 5.5 so this may have changed but
`sitemap.xml` is not part of the WordPress core sitemaps. Not in 5.9
anyway... It redirects to `wp-sitemap.xml`
Thanks for testing! It does issue a 302 redirect, but also sends a
`Content-Type: text/html; charset=UTF-8` header, which is exactly what the
ticket is about. This still happens in current trunk.
> I verified the Content-Type headers for the index on `wp-sitemap.xml`
and all sitemaps but always get `application/xml; charset=UTF-8`.
This is also mentioned in the ticket, the header is indeed correct on
actual sitemaps.
Given the lack of traction in the last 18 months, it looks like this might
be an acceptable edge case and is not going to be addressed at this time.
Feel free to reopen if there is still interest in working on this further.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51324#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list