Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#3319 closed defect (bug) (fixed)

Export sends Content-Type twice

Reported by: nazgul's profile 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)

#1 @mdawaffe
18 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.