Index: /branches/release-33/lib/MT/CMS/Export.pm
===================================================================
--- /branches/release-33/lib/MT/CMS/Export.pm (revision 1369)
+++ /branches/release-33/lib/MT/CMS/Export.pm (revision 1782)
@@ -2,4 +2,5 @@
 
 use strict;
+use MT::Util qw( dirify );
 
 sub start_export {
@@ -18,6 +19,4 @@
 sub export {
     my $app = shift;
-    $app->{no_print_body} = 1;
-    local $| = 1;
     my $charset = $app->charset;
     require MT::Blog;
@@ -43,4 +42,7 @@
     }
 
+    $app->{no_print_body} = 1;
+    local $| = 1;
+
     $app->set_header( "Content-Disposition" => "attachment; filename=$file" );
     $app->send_http_header(
