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

Updated composer.json regarding unit tests, and corrected PSR implementation

This commit is contained in:
Frederik Buus Sauer
2018-04-12 11:10:45 +02:00
parent d0cf7f7d1d
commit 91f08b9f55
3 changed files with 54 additions and 50 deletions

View File

@@ -1299,11 +1299,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);
}
/**