summaryrefslogtreecommitdiffstats
path: root/lib/request.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-06-18 11:33:24 +0200
committerBart Visscher <bartv@thisnet.nl>2012-06-18 11:33:24 +0200
commit977cd0df6b502c1a15147c1641fea754128a0875 (patch)
tree25f1949eb75a6ce7fec35b77327f91843f7e4464 /lib/request.php
parenta5a1a9fd4a2f1cd5f2457ba3ab0ceb432da1be33 (diff)
downloadnextcloud-server-977cd0df6b502c1a15147c1641fea754128a0875.tar.gz
nextcloud-server-977cd0df6b502c1a15147c1641fea754128a0875.zip
Fix errors for minimizer
Diffstat (limited to 'lib/request.php')
-rw-r--r--lib/request.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/request.php b/lib/request.php
index d152d0c73ba..0b5aaf8ef30 100644
--- a/lib/request.php
+++ b/lib/request.php
@@ -15,6 +15,9 @@ class OC_Request {
}
static public function acceptGZip() {
+ if (!isset($_SERVER['HTTP_ACCEPT_ENCODING'])) {
+ return false;
+ }
$HTTP_ACCEPT_ENCODING = $_SERVER["HTTP_ACCEPT_ENCODING"];
if( strpos($HTTP_ACCEPT_ENCODING, 'x-gzip') !== false )
return 'x-gzip';