Merge pull request #732 from Woet/patch-1
Close the session for writing when sending a file
This commit is contained in:
commit
84d84e163b
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ class Api {
|
||||||
$archive = new Archive($this->context);
|
$archive = new Archive($this->context);
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
session_write_close();
|
||||||
header('Content-Type: application/octet-stream');
|
header('Content-Type: application/octet-stream');
|
||||||
header('Content-Disposition: attachment; filename="' . $as . '"');
|
header('Content-Disposition: attachment; filename="' . $as . '"');
|
||||||
header('Connection: close');
|
header('Connection: close');
|
||||||
|
|
Loading…
Reference in a new issue