mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-07 06:16:37 +02:00
Merge pull request #732 from Woet/patch-1
Close the session for writing when sending a file
This commit is contained in:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user