Skip to content

Commit

Permalink
Add FORCE_PATH_STYLE into the defaults of S3NioSpiConfiguration in …
Browse files Browse the repository at this point in the history
…order to allow it to be modified via environment variables
  • Loading branch information
oeph committed May 27, 2024
1 parent 96c070f commit 402fa0c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public class S3NioSpiConfiguration extends HashMap<String, Object> {
* The name of the force path style property
*/
public static final String S3_SPI_FORCE_PATH_STYLE_PROPERTY = "s3.spi.force-path-style";
/**
* The default value of the force path style property
*/
public static final String S3_SPI_FORCE_PATH_STYLE_DEFAULT = "false";
/**
* The default value of the credentials property
*/
Expand Down Expand Up @@ -98,6 +102,7 @@ public S3NioSpiConfiguration(Map<String, ?> overrides) {
put(S3_SPI_READ_MAX_FRAGMENT_NUMBER_PROPERTY, String.valueOf(S3_SPI_READ_MAX_FRAGMENT_NUMBER_DEFAULT));
put(S3_SPI_READ_MAX_FRAGMENT_SIZE_PROPERTY, String.valueOf(S3_SPI_READ_MAX_FRAGMENT_SIZE_DEFAULT));
put(S3_SPI_ENDPOINT_PROTOCOL_PROPERTY, S3_SPI_ENDPOINT_PROTOCOL_DEFAULT);
put(S3_SPI_FORCE_PATH_STYLE_PROPERTY, S3_SPI_FORCE_PATH_STYLE_DEFAULT);

//
// With the below we pick existing environment variables and system
Expand Down

0 comments on commit 402fa0c

Please sign in to comment.