[wp-trac] [WordPress Trac] #3545: Content-Type header case sensitive

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 9 13:08:59 GMT 2007


#3545: Content-Type header case sensitive
-----------------------+----------------------------------------------------
 Reporter:  johnleach  |       Owner:  anonymous                      
     Type:  defect     |      Status:  new                            
 Priority:  normal     |   Milestone:  2.0.7                          
Component:  General    |     Version:  2.0.6                          
 Severity:  normal     |    Keywords:  headers mime type http wp-cache
-----------------------+----------------------------------------------------
 Wordpress 2.0.6 (and below) use of the Content-Type header is
 inconsistent.  In most places it sends "Content-Type" but in some,
 particularly the RSS templates, it sends "Content-type" (note the
 lowercase 't')

 RFC2616 implies that this header is case sensitive.

 I came across this whilst using the WP-Cache plugin.  It is strict about
 the header case and ignores the RSS feed content types, overriding it with
 it's own default of html/text.  So WP-Cached RSS feeds end up with the
 wrong content-type, breaking some feed readers.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3545>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list