aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-05-20 11:08:27 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-05-20 13:37:28 +0200
commit8bcd1c31da7a02e78435aa49508ed3787b11867d (patch)
tree1eaeb0245783501e618d5b4b5c2ac6d9d3bf98fc /tests
parent526905cfc28f701c828c439fba40d9745d3a3ba3 (diff)
downloadnextcloud-server-8bcd1c31da7a02e78435aa49508ed3787b11867d.tar.gz
nextcloud-server-8bcd1c31da7a02e78435aa49508ed3787b11867d.zip
Allow gzip encoded requests by default
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Http/Client/ClientTest.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/lib/Http/Client/ClientTest.php b/tests/lib/Http/Client/ClientTest.php
index b136a0ca300..a0c4d75c1bd 100644
--- a/tests/lib/Http/Client/ClientTest.php
+++ b/tests/lib/Http/Client/ClientTest.php
@@ -292,6 +292,7 @@ class ClientTest extends \Test\TestCase {
],
'headers' => [
'User-Agent' => 'Nextcloud Server Crawler',
+ 'Accept-Encoding' => 'gzip',
],
'timeout' => 30,
];
@@ -467,7 +468,8 @@ class ClientTest extends \Test\TestCase {
$this->assertEquals([
'verify' => \OC::$SERVERROOT . '/resources/config/ca-bundle.crt',
'headers' => [
- 'User-Agent' => 'Nextcloud Server Crawler'
+ 'User-Agent' => 'Nextcloud Server Crawler',
+ 'Accept-Encoding' => 'gzip',
],
'timeout' => 30,
], self::invokePrivate($this->client, 'buildRequestOptions', [[]]));
@@ -502,7 +504,8 @@ class ClientTest extends \Test\TestCase {
'https' => 'foo'
],
'headers' => [
- 'User-Agent' => 'Nextcloud Server Crawler'
+ 'User-Agent' => 'Nextcloud Server Crawler',
+ 'Accept-Encoding' => 'gzip',
],
'timeout' => 30,
], self::invokePrivate($this->client, 'buildRequestOptions', [[]]));
@@ -538,7 +541,8 @@ class ClientTest extends \Test\TestCase {
'no' => ['bar']
],
'headers' => [
- 'User-Agent' => 'Nextcloud Server Crawler'
+ 'User-Agent' => 'Nextcloud Server Crawler',
+ 'Accept-Encoding' => 'gzip',
],
'timeout' => 30,
], self::invokePrivate($this->client, 'buildRequestOptions', [[]]));