Skip to content

Commit cc52b02

Browse files
authored
Revert "feat(tls): allow disabling protocol upgrade (#1409)" (#1414)
This reverts commit edc79d8.
1 parent edc79d8 commit cc52b02

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/main/java/com/adyen/Config.java

-13
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public class Config {
1717
protected String apiKey;
1818
protected int connectionTimeoutMillis;
1919
protected int readTimeoutMillis;
20-
protected Boolean protocolUpgradeEnabled;
2120

2221
//Terminal API Specific
2322
protected String terminalApiCloudEndpoint;
@@ -102,18 +101,6 @@ public void setReadTimeoutMillis(int readTimeoutMillis) {
102101
this.readTimeoutMillis = readTimeoutMillis;
103102
}
104103

105-
public Boolean getProtocolUpgradeEnabled() {
106-
return protocolUpgradeEnabled;
107-
}
108-
109-
/**
110-
* Whether the HTTP requests should automatically attempt to upgrade to a safer/newer version of the protocol.
111-
* See also {@link RequestConfig.Builder#setProtocolUpgradeEnabled(boolean)}.
112-
*/
113-
public void setProtocolUpgradeEnabled(Boolean protocolUpgradeEnabled) {
114-
this.protocolUpgradeEnabled = protocolUpgradeEnabled;
115-
}
116-
117104
public String getLiveEndpointUrlPrefix() {
118105
return this.liveEndpointUrlPrefix;
119106
}

src/main/java/com/adyen/httpclient/AdyenHttpClient.java

-3
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ private HttpUriRequestBase createRequest(String endpoint, String requestBody, Co
121121
if (config.getConnectionTimeoutMillis() > 0) {
122122
builder.setConnectTimeout(config.getConnectionTimeoutMillis(), TimeUnit.MILLISECONDS);
123123
}
124-
if (config.getProtocolUpgradeEnabled() != null) {
125-
builder.setProtocolUpgradeEnabled(config.getProtocolUpgradeEnabled());
126-
}
127124
if (proxy != null && proxy.address() instanceof InetSocketAddress) {
128125
InetSocketAddress inetSocketAddress = (InetSocketAddress) proxy.address();
129126
builder.setProxy(new HttpHost(inetSocketAddress.getHostName(), inetSocketAddress.getPort()));

0 commit comments

Comments
 (0)