mazorius
12/09/2020, 10:28 PMHttpClient().use {
GlobalScope.launch {
it.submitFormWithBinaryData {
url {
url(artifactRepository.get().baseUrl.clone().build())
parameter("repository", repositoryName.get())
headers {
append("User-Agent", System.getProperty("os.name"))
}
}
}
}
}
Unfortunately this ends up in the second run with io.ktor.client.engine.ClientEngineClosedException: Client already closed
Anyone an idea how I can handle this?runBlocking {
as I need to wait for the result of this post