Skip to content

Commit

Permalink
use replace on curl options
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jun 27, 2024
1 parent 5db17d5 commit fe12fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/http/src/Transport/CurlTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ protected function prepareCurlOptions(RequestInterface $request, array $options)
}

// Set any custom transport options
$opt += $options['curl'] ?? $options['options'] ?? [];
$opt = array_replace($opt, $options['curl'] ?? [], $options['options'] ?? []);

return $opt;
}
Expand Down

0 comments on commit fe12fcf

Please sign in to comment.