From 34f1fcbdcb7316b356e41a6dc71dbd016c6a0b3f Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Fri, 22 Jan 2016 01:47:05 +0000 Subject: [PATCH] Drop downgrade warning --- src/Composer/Util/RemoteFilesystem.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 6ecc349db..e420fa3b7 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -327,16 +327,6 @@ class RemoteFilesystem if (!empty($targetUrl)) { $this->redirects++; - // TODO: Disabled because this is (probably) different behaviour to PHP following for us. - // if ('http' === parse_url($targetUrl, PHP_URL_SCHEME) && 'https' === $this->scheme) { - // // Do not allow protocol downgrade. - // // TODO: Currently this will fail if a request goes http -> https -> http - // $e = new TransportException('The "'.$this->fileUrl.'" file could not be downloaded, not permitting protocol downgrade'); - // $e->setHeaders($http_response_header); - // $e->setResponse($result); - // throw $e; - // } - if ($this->io->isDebug()) { $this->io->writeError(sprintf('Following redirect (%u)', $this->redirects)); }