Skip to content

Commit 74cae1b

Browse files
🐛 Use CLEARTEXT for tests
1 parent cf58894 commit 74cae1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.io.IOException;
1616
import java.net.CookieManager;
1717
import java.net.CookiePolicy;
18-
import java.util.Collections;
18+
import java.util.Arrays;
1919
import java.util.Map;
2020
import java.util.concurrent.TimeUnit;
2121
import java.util.logging.Level;
@@ -133,7 +133,7 @@ protected OkHttpClient configureHttpClient() {
133133
.allEnabledCipherSuites()
134134
.build();
135135

136-
builder.connectionSpecs(Collections.singletonList(spec));
136+
builder.connectionSpecs(Arrays.asList(spec, ConnectionSpec.CLEARTEXT));
137137

138138
return builder.build();
139139
}

0 commit comments

Comments
 (0)