Skip to content

Commit f3fff24

Browse files
authored
[BUGFIX] Return instead of exit to return download response to browser in FileDump event listener (#252)
Fixes #251
1 parent 6401482 commit f3fff24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/EventListener/ModifyFileDumpEventListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ protected function dumpFileContents(FileInterface $file, bool $asDownload, bool
187187
if (!$resumableDownload) {
188188
$response = $file->getStorage()->streamFile($file, $asDownload, $downloadName);
189189
$this->event->setResponse($response);
190-
exit;
190+
return;
191191
}
192192

193193
$contentDisposition = $asDownload ? 'attachment' : 'inline';

0 commit comments

Comments
 (0)