Fix Springboot+Tomcat http status missing, fix memory url leak

This commit is contained in:
Alexis Delhaie
2020-09-16 21:42:25 +02:00
parent af3203a1e2
commit 4bb8afed0d
7 changed files with 164 additions and 40 deletions

View File

@@ -19,7 +19,7 @@ public class HttpClient {
public final static String CRLF = "\r\n";
public final static int DEFAULT_TIMEOUT = 10000;
private boolean allowInvalidSsl;
private final boolean allowInvalidSsl;
public HttpClient() { this(false); }
public HttpClient(boolean allowInvalidSsl) { this.allowInvalidSsl = allowInvalidSsl; }