1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-29 09:50:40 +02:00

Merge tag '3.1.5' into develop

version 3.1.5
This commit is contained in:
Ne-Lexa
2018-04-25 12:44:40 +03:00
3 changed files with 54 additions and 50 deletions

View File

@@ -1302,11 +1302,11 @@ class ZipFile implements ZipFileInterface
}
$stream = new ResponseStream($handle);
$response->withHeader('Content-Type', $mimeType);
$response->withHeader('Content-Disposition', $contentDispositionValue);
$response->withHeader('Content-Length', $stream->getSize());
$response->withBody($stream);
return $response;
return $response
->withHeader('Content-Type', $mimeType)
->withHeader('Content-Disposition', $contentDispositionValue)
->withHeader('Content-Length', $stream->getSize())
->withBody($stream);
}
/**