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:
authorJoas Schilling <coding@schilljs.com>2017-05-10 15:07:58 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-08-01 14:56:12 +0300
commite30287cf814bca99b01561df0e60fb00c59ade42 (patch)
treeb029654c0df4c4d120a1c1424a63a93733cf9d80 /apps/files/ajax
parent45e2c415d4ff066d579ab133be4f15453c07b242 (diff)
Fix comparisons in the files app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/download.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php
index 17a7fd8b322..7c33cdec6dd 100644
--- a/apps/files/ajax/download.php
+++ b/apps/files/ajax/download.php
@@ -51,7 +51,7 @@ if(isset($_GET['downloadStartSecret'])
setcookie('ocDownloadStarted', $_GET['downloadStartSecret'], time() + 20, '/');
}
-$server_params = array( 'head' => \OC::$server->getRequest()->getMethod() == 'HEAD' );
+$server_params = array( 'head' => \OC::$server->getRequest()->getMethod() === 'HEAD' );
/**
* Http range requests support