Skip to content
Snippets Groups Projects

978: remove spring-web

Merged Henry Borasch requested to merge 978_remove_spring-web into main
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
@@ -49,8 +49,14 @@ public class HttpClient {
}
public HttpClient(boolean throwExceptionsOnFailure, List<Interceptor> interceptors, Proxy proxy) {
LOGGER.info("Creating HttpClient with proxy configuration: {}", proxy);
this.httpClient = builderWithInterceptors(interceptors).proxy(proxy).build();
if (proxy.address().toString().equals("localhost/127.0.0.1:0")) {
LOGGER.info("Creating HttpClient without proxy configuration.");
this.httpClient = builderWithInterceptors(interceptors).build();
} else {
LOGGER.info("Creating HttpClient with proxy configuration: {}", proxy);
this.httpClient = builderWithInterceptors(interceptors).proxy(proxy).build();
}
this.throwExceptionsOnFailure = throwExceptionsOnFailure;
}
Loading