Removed dependency added in previous commit. Fixed upload code on IRS Demo

This commit is contained in:
Clinton Alexander 2016-06-07 14:30:58 +01:00 committed by Andras Slemmer
parent f6069e1e15
commit 60daf8059f
2 changed files with 5 additions and 3 deletions

View File

@ -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'

View File

@ -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 -> {