Skip to content

Commit b87add2

Browse files
Fiehe Christophkesselb
authored andcommitted
fix(s3): expose request_checksum_calculation and response_checksum_validation
Fix #56077 This commit makes the configuration settings 'request_checksum_calculation' and 'response_checksum_validation' of the S3Client from the AWS SDK for PHP configurable. Signed-off-by: Fiehe Christoph <c.fiehe@eurodata.de> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent da13836 commit b87add2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/private/Files/ObjectStore/S3ConnectionTrait.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ public function getConnection() {
119119
$options['endpoint'] = $base_url;
120120
}
121121

122+
if (isset($this->params['request_checksum_calculation'])) {
123+
$options['request_checksum_calculation'] = $this->params['request_checksum_calculation'];
124+
}
125+
126+
if (isset($this->params['response_checksum_validation'])) {
127+
$options['response_checksum_validation'] = $this->params['response_checksum_validation'];
128+
}
129+
122130
if ($this->getProxy()) {
123131
$options['http']['proxy'] = $this->getProxy();
124132
}

0 commit comments

Comments
 (0)