Skip to content
Snippets Groups Projects
Commit e5bf1fac authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #596 from greezybacon/issue/php-zlib-truncates-download


Turn off output_compression for downloads

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 0ae67cea 63c3470d
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ class AttachmentFile {
}
function sendData() {
@ini_set('zlib.output_compression', 'Off');
$file = $this->open();
while ($chunk = $file->read())
echo $chunk;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment