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
@@ -381,7 +382,7 @@ public class ApiInvoker {
381
382
schemeRegistry.register(httpsScheme);
382
383
schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
383
384
384
- ignoreSSLConnectionManager = new SingleClientConnManager (new BasicHttpParams(), schemeRegistry);
385
+ ignoreSSLConnectionManager = new ThreadSafeClientConnManager (new BasicHttpParams(), schemeRegistry);
385
386
} catch (NoSuchAlgorithmException e) {
386
387
// This will only be thrown if SSL isn' t available for some reason.
387
388
} catch (KeyManagementException e) {
You can’t perform that action at this time.
0 commit comments