From b68275babaab74b5eabc6b883cd36bca8fc56ae5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Tue, 5 Aug 2014 11:21:42 +0200
Subject: [PATCH] close session right before the download starts - this enables
 parallel downloads

---
 apps/files_sharing/public.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index ec7c80f331..e64a1f7b12 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);
-- 
GitLab