Skip to content

Commit 0bd6ee6

Browse files
authored
Merge pull request #22 from dchenbec/fix-region-case-mismatch-4.x
Fix region case mismatch for 4.x
2 parents fdabb69 + d832634 commit 0bd6ee6

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

pom.xml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -141,25 +141,6 @@
141141
<autoReleaseAfterClose>false</autoReleaseAfterClose>
142142
</configuration>
143143
</plugin>
144-
<plugin>
145-
<groupId>org.codehaus.mojo</groupId>
146-
<artifactId>license-maven-plugin</artifactId>
147-
<version>2.0.0</version>
148-
<configuration>
149-
<copyrightOwners>Amazon.com, Inc. or its affiliates. All Rights Reserved.</copyrightOwners>
150-
<licenseName>apache_v2</licenseName>
151-
<roots>src</roots>
152-
</configuration>
153-
<executions>
154-
<execution>
155-
<id>first</id>
156-
<goals>
157-
<goal>update-file-header</goal>
158-
</goals>
159-
<phase>process-sources</phase>
160-
</execution>
161-
</executions>
162-
</plugin>
163144
<plugin>
164145
<groupId>org.apache.maven.plugins</groupId>
165146
<artifactId>maven-enforcer-plugin</artifactId>

src/main/java/software/aws/mcs/auth/SigV4AuthProvider.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,9 @@ public SigV4AuthProvider(@NotNull AwsCredentialsProvider credentialsProvider, fi
156156
if (region == null) {
157157
DefaultAwsRegionProviderChain chain = new DefaultAwsRegionProviderChain();
158158
Region defaultRegion = chain.getRegion();
159-
this.signingRegion = defaultRegion.toString();
160-
159+
this.signingRegion = defaultRegion.toString().toLowerCase();
161160
} else {
162-
this.signingRegion = region;
161+
this.signingRegion = region.toLowerCase();
163162
}
164163

165164
if (this.signingRegion == null) {

0 commit comments

Comments
 (0)