mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(s3): expose request_checksum_calculation and response_checksum_validation
Fix https://github.com/nextcloud/server/issues/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>
This commit is contained in:
parent
da13836617
commit
b87add2711
1 changed files with 8 additions and 0 deletions
|
|
@ -119,6 +119,14 @@ trait S3ConnectionTrait {
|
|||
$options['endpoint'] = $base_url;
|
||||
}
|
||||
|
||||
if (isset($this->params['request_checksum_calculation'])) {
|
||||
$options['request_checksum_calculation'] = $this->params['request_checksum_calculation'];
|
||||
}
|
||||
|
||||
if (isset($this->params['response_checksum_validation'])) {
|
||||
$options['response_checksum_validation'] = $this->params['response_checksum_validation'];
|
||||
}
|
||||
|
||||
if ($this->getProxy()) {
|
||||
$options['http']['proxy'] = $this->getProxy();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue