File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
modules/swagger-codegen/src/main/resources/android-java Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import org.apache.http.entity.ContentType;
16
16
import org.apache.http.entity.StringEntity;
17
17
import org.apache.http.impl.client.*;
18
18
import org.apache.http.impl.conn.*;
19
+ import org.apache.http.impl.conn.tsccm.*;
19
20
import org.apache.http.params.*;
20
21
import org.apache.http.util.EntityUtils;
21
22
@@ -364,7 +365,7 @@ public class ApiInvoker {
364
365
schemeRegistry.register(httpsScheme);
365
366
schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
366
367
367
- ignoreSSLConnectionManager = new SingleClientConnManager (new BasicHttpParams(), schemeRegistry);
368
+ ignoreSSLConnectionManager = new ThreadSafeClientConnManager (new BasicHttpParams(), schemeRegistry);
368
369
} catch (NoSuchAlgorithmException e) {
369
370
// This will only be thrown if SSL isn' t available for some reason.
370
371
} catch (KeyManagementException e) {
You can’t perform that action at this time.
0 commit comments