Set `accept-encoding: gzip` for SFS list requests
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 21 Jun 2021 14:14:59 +0000 (16:14 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 21 Jun 2021 14:14:59 +0000 (16:14 +0200)
see #4218

wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntryAction.class.php
wcfsetup/install/files/lib/data/blacklist/status/BlacklistStatus.class.php

index 4b89f9b82ec3a11097f8a957896fa3beab53436e..4e29608b1a8c22436e4088893569e9c5a3b8a0a6 100644 (file)
@@ -43,7 +43,10 @@ class BlacklistEntryAction extends AbstractDatabaseObjectAction
 
         $request = new Request(
             'GET',
-            "https://assets.woltlab.com/blacklist/{$nextDelta}"
+            "https://assets.woltlab.com/blacklist/{$nextDelta}",
+            [
+                'accept-encoding' => 'gzip',
+            ]
         );
         try {
             $response = $client->send($request);
index 494d59cd4fb164eca8bbf5448d1414902deecc05..e45d06701027c56e4ad9fb5c8fa484e457d85864 100644 (file)
@@ -96,7 +96,10 @@ class BlacklistStatus extends DatabaseObject
         // Fetch the index file to determine the oldest possible value that can be retrieved.
         $request = new Request(
             'GET',
-            'https://assets.woltlab.com/blacklist/index.json'
+            'https://assets.woltlab.com/blacklist/index.json',
+            [
+                'accept-encoding' => 'gzip',
+            ]
         );
 
         try {