Remove processing of the `wcf-update-server-ssl` header in PackageUpdateDispatcher
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 11 May 2022 14:20:39 +0000 (16:20 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 11 May 2022 14:34:49 +0000 (16:34 +0200)
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php

index 35fca80a1d71b110d819513004e48606c2856b43..5d1626aad74ef463989b4c93df570aeae70252cc 100644 (file)
@@ -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);