Content-Type of XML feeds is misstated as 'text/html'
|Reported by:||celejar0||Owned by:||dd32|
I access blog XML feeds via a caching proxy (squid). The Content-Type in the HTTP response headers is initially reported correctly as 'text/xml', but when a subsequent request is made and the object is stale, wordpress sometimes returns a '304 Not Modified', but also incorrectly re-characterizes the Content-Type as 'text/html'. Example:
HTTP/1.0 304 Not Modified X-Pingback: http://wordpress.org/development/xmlrpc.php Last-Modified: Sat, 31 Oct 2009 21:28:00 GMT ETag: "a4aa82a49dbe294617210eb367fa0997" Content-type: text/html Date: Mon, 02 Nov 2009 01:25:17 GMT Server: LiteSpeed Connection: close
I've seen this on 'wordpress.org/development/feed' (LiteSpeed), on a wordpress.com hosted blog (nginx), and on an independent site running wordpress (Apache).