From 6d0cc4cb9b1801bdaa7961630835b1425a64e697 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 11 May 2022 16:20:39 +0200 Subject: [PATCH] Remove processing of the `wcf-update-server-ssl` header in PackageUpdateDispatcher --- .../lib/system/package/PackageUpdateDispatcher.class.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index 35fca80a1d..5d1626aad7 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -217,8 +217,6 @@ class PackageUpdateDispatcher extends SingletonFactory if (\in_array($apiVersion, ['2.1', '3.1'])) { if (empty($reply['httpHeaders']['etag']) && empty($reply['httpHeaders']['last-modified'])) { throw new SystemException("Missing required HTTP headers 'etag' and 'last-modified'."); - } elseif (empty($reply['httpHeaders']['wcf-update-server-ssl'])) { - throw new SystemException("Missing required HTTP header 'wcf-update-server-ssl'."); } $metaData['list'] = []; @@ -228,8 +226,6 @@ class PackageUpdateDispatcher extends SingletonFactory if (!empty($reply['httpHeaders']['last-modified'])) { $metaData['list']['lastModified'] = \reset($reply['httpHeaders']['last-modified']); } - - $metaData['ssl'] = (\reset($reply['httpHeaders']['wcf-update-server-ssl']) == 'true') ? true : false; } $data['metaData'] = \serialize($metaData); -- 2.20.1