diff --git a/android-client-sdk/src/main/java/com/devcycle/sdk/android/eventsource/EventSource.java b/android-client-sdk/src/main/java/com/devcycle/sdk/android/eventsource/EventSource.java index 19809f1..bada81c 100644 --- a/android-client-sdk/src/main/java/com/devcycle/sdk/android/eventsource/EventSource.java +++ b/android-client-sdk/src/main/java/com/devcycle/sdk/android/eventsource/EventSource.java @@ -33,6 +33,7 @@ import okhttp3.Headers; import okhttp3.HttpUrl; import okhttp3.OkHttpClient; +import okhttp3.Protocol; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; @@ -619,6 +620,7 @@ private static OkHttpClient.Builder createInitialClientBuilder() { .connectTimeout(DEFAULT_CONNECT_TIMEOUT, TimeUnit.MILLISECONDS) .readTimeout(DEFAULT_READ_TIMEOUT, TimeUnit.MILLISECONDS) .writeTimeout(DEFAULT_WRITE_TIMEOUT, TimeUnit.MILLISECONDS) + .protocols(Arrays.asList(Protocol.HTTP_1_1)) .retryOnConnectionFailure(true); try { b.sslSocketFactory(new ModernTLSSocketFactory(), defaultTrustManager());