Fixed Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpClient" in bin/gpm selfupdate [#3165]

This commit is contained in:
Matias Griese
2021-01-21 15:20:27 +02:00
parent 9a1ab6ee0b
commit c8af0d8a38
2 changed files with 2 additions and 6 deletions

View File

@@ -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

View File

@@ -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']);