Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 17 years ago

#3319 closed defect (bug) (fixed)

Export sends Content-Type twice

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

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
20 years ago

  • Resolution → fixed
  • Status new → 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.