From 388a458cd5bcbafe3c6b589b76a35fed8aeda484 Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Mon, 28 Jun 2021 17:58:50 +0200 Subject: [PATCH] fix(proxy): use accessor Signed-off-by: Maxime Besson --- lib/private/Files/ObjectStore/S3ConnectionTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index 6fd6b14aabe..fe7f7487a98 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -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';