diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-29 00:11:51 -0600 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-29 00:11:51 -0600 |
commit | 9813023aabfb37256dac4d2eea5574f91f8897e2 (patch) | |
tree | 5a8fc5c3113df74b566ccc1878d5e243d8e49233 /tests/lib/Template/SCSSCacherTest.php | |
parent | 05f25963117f4829f5eae3c23d0e4c40cdbc0abf (diff) | |
download | nextcloud-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 'tests/lib/Template/SCSSCacherTest.php')
-rw-r--r-- | tests/lib/Template/SCSSCacherTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Template/SCSSCacherTest.php b/tests/lib/Template/SCSSCacherTest.php index 887fa1ed605..24865b9ae45 100644 --- a/tests/lib/Template/SCSSCacherTest.php +++ b/tests/lib/Template/SCSSCacherTest.php @@ -81,7 +81,7 @@ class SCSSCacherTest extends \Test\TestCase { return $file; } else if ($path === 'styles.css.deps') { throw new NotFoundException(); - } else if ($path === 'styles.css.gz') { + } else if ($path === 'styles.css.gzip') { return $gzfile; } else { $this->fail(); @@ -110,7 +110,7 @@ class SCSSCacherTest extends \Test\TestCase { return $file; } else if ($path === 'styles.css.deps') { throw new NotFoundException(); - } else if ($path === 'styles.css.gz') { + } else if ($path === 'styles.css.gzip') { return $gzfile; }else { $this->fail(); @@ -228,7 +228,7 @@ class SCSSCacherTest extends \Test\TestCase { return $file; } else if ($fileName === 'styles.css.deps') { return $depsFile; - } else if ($fileName === 'styles.css.gz') { + } else if ($fileName === 'styles.css.gzip') { return $gzipFile; } throw new \Exception(); @@ -258,7 +258,7 @@ class SCSSCacherTest extends \Test\TestCase { return $file; } else if ($fileName === 'styles.css.deps') { return $depsFile; - } else if ($fileName === 'styles.css.gz') { + } else if ($fileName === 'styles.css.gzip') { return $gzipFile; } throw new \Exception(); @@ -288,7 +288,7 @@ class SCSSCacherTest extends \Test\TestCase { return $file; } else if ($fileName === 'styles-success.css.deps') { return $depsFile; - } else if ($fileName === 'styles-success.css.gz') { + } else if ($fileName === 'styles-success.css.gzip') { return $gzipFile; } throw new \Exception(); |