mirror of
https://github.com/corda/corda.git
synced 2024-12-23 23:02:29 +00:00
Removed dependency added in previous commit. Fixed upload code on IRS Demo
This commit is contained in:
parent
f6069e1e15
commit
60daf8059f
@ -90,8 +90,6 @@ dependencies {
|
||||
// TypeSafe Config: for simple and human friendly config files.
|
||||
compile "com.typesafe:config:1.3.0"
|
||||
|
||||
compile "org.apache.httpcomponents:httpclient:4.5.2"
|
||||
|
||||
// Unit testing helpers.
|
||||
testCompile 'junit:junit:4.12'
|
||||
testCompile 'org.assertj:assertj-core:3.4.1'
|
||||
|
@ -40,7 +40,11 @@ import java.util.*
|
||||
import kotlin.concurrent.fixedRateTimer
|
||||
import kotlin.system.exitProcess
|
||||
import org.apache.commons.io.IOUtils
|
||||
import org.glassfish.jersey.client.JerseyClientBuilder
|
||||
import org.glassfish.jersey.client.JerseyWebTarget
|
||||
import java.io.FileNotFoundException
|
||||
import javax.ws.rs.client.Entity
|
||||
import javax.ws.rs.client.Invocation
|
||||
|
||||
// IRS DEMO
|
||||
//
|
||||
@ -311,7 +315,7 @@ private fun sendJson(url: URL, data: String, method: String) : Boolean {
|
||||
outStream.writeBytes(data)
|
||||
outStream.close()
|
||||
|
||||
return when(connection.responseCode) {
|
||||
return when (connection.responseCode) {
|
||||
200 -> true
|
||||
201 -> true
|
||||
else -> {
|
||||
|
Loading…
Reference in New Issue
Block a user