summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-10 14:07:58 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-01 13:56:12 +0200
commite30287cf814bca99b01561df0e60fb00c59ade42 (patch)
treeb029654c0df4c4d120a1c1424a63a93733cf9d80 /apps/files/ajax
parent45e2c415d4ff066d579ab133be4f15453c07b242 (diff)
downloadnextcloud-server-e30287cf814bca99b01561df0e60fb00c59ade42.tar.gz
nextcloud-server-e30287cf814bca99b01561df0e60fb00c59ade42.zip
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