From c8af0d8a385a4dce7d5c5ef54a50c23b5946167f Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 21 Jan 2021 15:20:27 +0200 Subject: [PATCH] Fixed `Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpClient"` in `bin/gpm selfupdate` [#3165] --- CHANGELOG.md | 1 + system/src/Grav/Console/Gpm/SelfupgradeCommand.php | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cebd961a7..fb54a05ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * Fixed default GPM Channel back to 'stable' - this was inadvertently left as 'testing' * Fixed broken stream initialization if `environment://` paths aren't streams * Fixed Clockwork debugger in sub-folder multi-site setups + * Fixed `Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpClient"` in `bin/gpm selfupdate` [#3165](https://github.com/getgrav/grav/issues/3165) # v1.7.1 ## 01/20/2021 diff --git a/system/src/Grav/Console/Gpm/SelfupgradeCommand.php b/system/src/Grav/Console/Gpm/SelfupgradeCommand.php index bc4f36741..3f1cfa2ec 100644 --- a/system/src/Grav/Console/Gpm/SelfupgradeCommand.php +++ b/system/src/Grav/Console/Gpm/SelfupgradeCommand.php @@ -220,12 +220,7 @@ class SelfupgradeCommand extends GpmCommand $tmp_dir = Grav::instance()['locator']->findResource('tmp://', true, true); $this->tmp = $tmp_dir . '/grav-update-' . uniqid('', false); $options = [ - 'curl' => [ - CURLOPT_TIMEOUT => $this->timeout, - ], - 'fopen' => [ - 'timeout' => $this->timeout, - ], + 'timeout' => $this->timeout, ]; $output = Response::get($package['download'], $options, [$this, 'progress']);