]> source.dussan.org Git - nextcloud-server.git/commitdiff
close session right before the download starts - this enables parallel downloads
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 5 Aug 2014 09:21:42 +0000 (11:21 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 5 Aug 2014 12:55:07 +0000 (14:55 +0200)
apps/files_sharing/public.php

index ec7c80f3316391317d99214279c2e6bd15ba66ab..e64a1f7b12738696ead959bec2fdf0af2ea771f9 100644 (file)
@@ -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);