Skip to content

Commit

Permalink
fix: disable secure-http config option for unsafe configured PECL w…
Browse files Browse the repository at this point in the history
…ebsite (#257)
  • Loading branch information
tntrex authored Jun 6, 2022
1 parent c3fea31 commit 6f3874f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Package/PHP/Convey/Command/Pecl.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,11 @@ protected function fetch($target)
$config = new Config();
$config->merge([
'config' => [
'secure-http' => WebsiteFactory::isTestServer() ? false : true,
'secure-http' => !WebsiteFactory::getWebsite()->isUnsafe(),
],
]);
$downloader = new PECLDownloader($this->io, $config);
if ($downloader !== null) {
$downloader->download($package, $target);
}
$downloader->download($package, $target);

unset($package, $downloader);
}
Expand Down

0 comments on commit 6f3874f

Please sign in to comment.