mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
ENT-3543 Update okhttp dependency (#5089)
This commit is contained in:
parent
355604457f
commit
ee3befcc6e
@ -34,7 +34,7 @@ buildscript {
|
|||||||
ext.disruptor_version = constants.getProperty("disruptorVersion")
|
ext.disruptor_version = constants.getProperty("disruptorVersion")
|
||||||
ext.metrics_version = constants.getProperty("metricsVersion")
|
ext.metrics_version = constants.getProperty("metricsVersion")
|
||||||
ext.metrics_new_relic_version = constants.getProperty("metricsNewRelicVersion")
|
ext.metrics_new_relic_version = constants.getProperty("metricsNewRelicVersion")
|
||||||
ext.okhttp_version = '3.5.0'
|
ext.okhttp_version = '3.14.1'
|
||||||
ext.netty_version = '4.1.22.Final'
|
ext.netty_version = '4.1.22.Final'
|
||||||
ext.typesafe_config_version = constants.getProperty("typesafeConfigVersion")
|
ext.typesafe_config_version = constants.getProperty("typesafeConfigVersion")
|
||||||
ext.fileupload_version = '1.3.3'
|
ext.fileupload_version = '1.3.3'
|
||||||
|
@ -307,7 +307,7 @@ class DriverDSLImpl(
|
|||||||
|
|
||||||
while (process.isAlive) try {
|
while (process.isAlive) try {
|
||||||
val response = client.newCall(Request.Builder().url(url).build()).execute()
|
val response = client.newCall(Request.Builder().url(url).build()).execute()
|
||||||
if (response.isSuccessful && (response.body().string() == "started")) {
|
if (response.isSuccessful && (response.body()?.string() == "started")) {
|
||||||
return WebserverHandle(handle.webAddress, process)
|
return WebserverHandle(handle.webAddress, process)
|
||||||
}
|
}
|
||||||
} catch (e: ConnectException) {
|
} catch (e: ConnectException) {
|
||||||
|
@ -47,7 +47,7 @@ object HttpUtils {
|
|||||||
private fun makeRequest(request: Request) {
|
private fun makeRequest(request: Request) {
|
||||||
val response = client.newCall(request).execute()
|
val response = client.newCall(request).execute()
|
||||||
if (!response.isSuccessful) {
|
if (!response.isSuccessful) {
|
||||||
throw IOException("${request.method()} to ${request.url()} returned a ${response.code()}: ${response.body().string()}")
|
throw IOException("${request.method()} to ${request.url()} returned a ${response.code()}: ${response.body()?.string()}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user