Skip to content

Commit

Permalink
Fix option in the client code itself as well
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Jan 12, 2021
1 parent 9b58a02 commit 44ce8cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/private/Http/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ private function buildRequestOptions(array $options): array {
$options[RequestOptions::HEADERS]['Accept-Encoding'] = 'gzip';
}

// Fallback for save_to
if (isset($options['save_to'])) {
$options['sink'] = $options['save_to'];
unset($options['save_to']);
}

return $options;
}

Expand Down

0 comments on commit 44ce8cb

Please sign in to comment.