Use http 1.1 for okhttp3 tests (#3565)

This commit is contained in:
Lauri Tulmin 2021-07-14 13:21:49 +03:00 committed by GitHub
parent 1d2743271b
commit 1d01475948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import okhttp3.Callback
import okhttp3.Headers
import okhttp3.MediaType
import okhttp3.OkHttpClient
import okhttp3.Protocol
import okhttp3.Request
import okhttp3.RequestBody
import okhttp3.Response
@ -28,6 +29,7 @@ abstract class AbstractOkHttp3Test extends HttpClientTest<Request> {
def client = configureClient(
new OkHttpClient.Builder()
.connectTimeout(CONNECT_TIMEOUT_MS, TimeUnit.MILLISECONDS)
.protocols(Arrays.asList(Protocol.HTTP_1_1))
.retryOnConnectionFailure(false))
.build()