Skip to content

Commit 71ad745

Browse files
authored
Deactivate chunked body in S3 (#911)
* Deactivate chunked body in S3 * Reword doc * Use array to define Signer options * Fix tests
1 parent 4476e81 commit 71ad745

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## NOT RELEASED
4+
5+
### Added
6+
7+
- Added option `sendChunkedBody` dedicated to S3.
8+
39
## 1.7.2
410

511
- Make sure we can get credentials even if the cache storage fails

src/Configuration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class Configuration
3333

3434
// S3 specific option
3535
public const OPTION_PATH_STYLE_ENDPOINT = 'pathStyleEndpoint';
36+
public const OPTION_SEND_CHUNKED_BODY = 'sendChunkedBody';
3637

3738
private const AVAILABLE_OPTIONS = [
3839
self::OPTION_REGION => true,
@@ -49,6 +50,7 @@ final class Configuration
4950
self::OPTION_ROLE_SESSION_NAME => true,
5051
self::OPTION_CONTAINER_CREDENTIALS_RELATIVE_URI => true,
5152
self::OPTION_PATH_STYLE_ENDPOINT => true,
53+
self::OPTION_SEND_CHUNKED_BODY => true,
5254
];
5355

5456
// Put fallback options into groups to avoid mixing of provided config and environment variables
@@ -79,6 +81,7 @@ final class Configuration
7981
// https://docs.aws.amazon.com/general/latest/gr/rande.html
8082
self::OPTION_ENDPOINT => 'https://%service%.%region%.amazonaws.com',
8183
self::OPTION_PATH_STYLE_ENDPOINT => 'false',
84+
self::OPTION_SEND_CHUNKED_BODY => 'true',
8285
];
8386

8487
private $data = [];
@@ -120,6 +123,7 @@ public static function optionExists(string $optionName): bool
120123
* |self::OPTION_SHARED_CONFIG_FILE
121124
* |self::OPTION_ENDPOINT
122125
* |self::OPTION_PATH_STYLE_ENDPOINT
126+
* |self::OPTION_SEND_CHUNKED_BODY
123127
* ? string
124128
* : ?string
125129
* )

0 commit comments

Comments
 (0)