diff options
Diffstat (limited to 'lib/request.php')
-rw-r--r-- | lib/request.php | 3 |
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'; |