WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

Last modified 6 years ago

#3319 closed defect (bug) (fixed)

Export sends Content-Type twice

Reported by: Nazgul Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords:
Focuses: Cc:

Description

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);

Change History (1)

comment:1 @mdawaffe8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [4563]

I don't believe that was causing any of the problems. The second header should have been overriding the first.

In my tests for [4563], that line (or its removal) didn't seem to effect any browser.

Note: See TracTickets for help on using tickets.