Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-08-05 13:21:42 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-08-05 13:21:42 +0400
commitb68275babaab74b5eabc6b883cd36bca8fc56ae5 (patch)
tree03b0d65f04919579c405ba09635f94c647408787 /apps/files_sharing/public.php
parentc0e78d984140ecd6a49ac615214b4a68fab0557e (diff)
close session right before the download starts - this enables parallel downloads
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r--apps/files_sharing/public.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index ec7c80f3316..e64a1f7b127 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -100,6 +100,7 @@ if (isset($path)) {
$file = basename($path);
// Download the file
if (isset($_GET['download'])) {
+ \OC::$server->getSession()->close();
if (isset($_GET['files'])) { // download selected files
$files = urldecode($_GET['files']);
$files_list = json_decode($files);