mirror of
https://github.com/getgrav/grav.git
synced 2026-04-14 00:27:37 +02:00
Fixed Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpClient" in bin/gpm selfupdate [#3165]
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user