[wp-trac] [WordPress Trac] #3319: Export sends Content-Type twice

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 1 22:07:30 GMT 2006


#3319: Export sends Content-Type twice
----------------------------+-----------------------------------------------
 Reporter:  Nazgul          |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.1      
Component:  Administration  |     Version:  2.1      
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 The export module sends the Content-Type header twice. Once as application
 /octet-stream, the other as text/xml.

 {{{
 header('Content-Description: File Transfer');
 header('Content-Type: application/octet-stream');
 header("Content-Disposition: attachment; filename=$filename");
 header('Content-type: text/xml; charset=' . get_option('blog_charset'),
 true);
 }}}

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


More information about the wp-trac mailing list