Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix issue #1259: Zip on-the-fly option creates 0-sized empty files (a…
Browse files Browse the repository at this point in the history
…pache compatibility)
  • Loading branch information
morevnaproject committed Nov 3, 2016
1 parent eb1112a commit 71e7d46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/plugins/access.fs/FsAccessDriver.php
Expand Up @@ -662,6 +662,7 @@ public function downloadAction(ServerRequestInterface &$request, ResponseInterfa
if ($this->getContextualOption($ctx, "ZIP_ON_THE_FLY")) {
// Make a zip on the fly and send stream as download
$response = HTMLWriter::responseWithAttachmentsHeaders($response, $localName, null, false, false);
$response = $response->withoutHeader("Content-Length");
$asyncReader = new \Pydio\Core\Http\Response\AsyncResponseStream(function () use ($selection, $dir) {
session_write_close();
restore_error_handler();
Expand Down

0 comments on commit 71e7d46

Please sign in to comment.