Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Look up the correct `ProxyInfo` key

Previously, the S3 wagon looked for the `http` `ProxyInfo` key. It now
looks for the proper `s3` `ProxyInfo` key.
  • Loading branch information...
commit 0a716f5a12e789f3c72dd7b07d8e576ad146d1dd 1 parent af88234
Ben Hale nebhale authored
2  src/main/java/org/springframework/build/aws/maven/S3Utils.java
View
@@ -45,7 +45,7 @@ static ClientConfiguration getClientConfiguration(ProxyInfoProvider proxyInfoPro
ClientConfiguration clientConfiguration = new ClientConfiguration();
if (proxyInfoProvider != null) {
- ProxyInfo proxyInfo = proxyInfoProvider.getProxyInfo("http");
+ ProxyInfo proxyInfo = proxyInfoProvider.getProxyInfo("s3");
if (proxyInfo != null) {
clientConfiguration.withProxyHost(proxyInfo.getHost()).withProxyPort(proxyInfo.getPort());
}
2  src/test/java/org/springframework/build/aws/maven/S3UtilsTests.java
View
@@ -53,7 +53,7 @@ public void getBaseDirectory() {
@Test
public void getClientConfiguration() {
- when(this.proxyInfoProvider.getProxyInfo("http")).thenReturn(this.proxyInfo);
+ when(this.proxyInfoProvider.getProxyInfo("s3")).thenReturn(this.proxyInfo);
when(this.proxyInfo.getHost()).thenReturn("foo");
when(this.proxyInfo.getPort()).thenReturn(PORT);
Please sign in to comment.
Something went wrong with that request. Please try again.