Merge pull request #732 from Woet/patch-1

Close the session for writing when sending a file
This commit is contained in:
Lars Jung 2020-03-07 13:18:29 +01:00 committed by GitHub
commit 84d84e163b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class Api {
$archive = new Archive($this->context);
set_time_limit(0);
session_write_close();
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . $as . '"');
header('Connection: close');