Skip to content

Commit

Permalink
Fixed `Unsupported option "curl" passed to "Symfony\Component\HttpCli…
Browse files Browse the repository at this point in the history
…ent\CurlHttpClient"` in `bin/gpm selfupdate` [#3165]
  • Loading branch information
mahagr committed Jan 21, 2021
1 parent 9a1ab6e commit c8af0d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions system/src/Grav/Console/Gpm/SelfupgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,7 @@ private function download(array $package): string
$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']);
Expand Down

0 comments on commit c8af0d8

Please sign in to comment.