Skip to content

Commit

Permalink
Fixes #10135: Downloading large attachments results in Internal Serve…
Browse files Browse the repository at this point in the history
…r Error - 500.
  • Loading branch information
vboctor committed Jul 4, 2009
1 parent 6c8c7be commit 03f6cb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions file_download.php
Expand Up @@ -88,6 +88,9 @@
@ob_end_clean();
}

# readfile below doesn't like output buffering (see #10135)
@ob_end_flush();

# Make sure that IE can download the attachments under https.
header( 'Pragma: public' );

Expand Down

0 comments on commit 03f6cb7

Please sign in to comment.