summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-03-29 00:11:51 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-03-29 00:11:51 -0600
commit9813023aabfb37256dac4d2eea5574f91f8897e2 (patch)
tree5a8fc5c3113df74b566ccc1878d5e243d8e49233 /core/Controller
parent05f25963117f4829f5eae3c23d0e4c40cdbc0abf (diff)
downloadnextcloud-server-9813023aabfb37256dac4d2eea5574f91f8897e2.tar.gz
nextcloud-server-9813023aabfb37256dac4d2eea5574f91f8897e2.zip
Fix gzip files for Safari
* Safari support gzip only if the filename does not end on .gz - so this renames them to .gzip Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/CssController.php2
-rw-r--r--core/Controller/JsController.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/CssController.php b/core/Controller/CssController.php
index b467d386f98..57197e9999e 100644
--- a/core/Controller/CssController.php
+++ b/core/Controller/CssController.php
@@ -95,7 +95,7 @@ class CssController extends Controller {
if ($encoding !== null && strpos($encoding, 'gzip') !== false) {
try {
$gzip = true;
- return $folder->getFile($fileName . '.gz');
+ return $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz
} catch (NotFoundException $e) {
// continue
}
diff --git a/core/Controller/JsController.php b/core/Controller/JsController.php
index 0b50abc158a..c7c9dea9101 100644
--- a/core/Controller/JsController.php
+++ b/core/Controller/JsController.php
@@ -96,7 +96,7 @@ class JsController extends Controller {
if ($encoding !== null && strpos($encoding, 'gzip') !== false) {
try {
$gzip = true;
- return $folder->getFile($fileName . '.gz');
+ return $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz
} catch (NotFoundException $e) {
// continue
}