fix(proxy): use accessor

Signed-off-by: Maxime Besson <maxime.besson@worteks.com>
This commit is contained in:
Maxime Besson 2021-06-28 17:58:50 +02:00
parent 547438527d
commit 388a458cd5

View file

@ -130,8 +130,8 @@ trait S3ConnectionTrait {
'signature_provider' => \Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider()),
'csm' => false,
];
if (isset($this->params['proxy'])) {
$options['http'] = [ 'proxy' => $this->params['proxy'] ];
if ($this->getProxy()) {
$options['http'] = [ 'proxy' => $this->getProxy() ];
}
if (isset($this->params['legacy_auth']) && $this->params['legacy_auth']) {
$options['signature_version'] = 'v2';