aboutsummaryrefslogtreecommitdiff
path: root/akka-http-handler
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-07-24 17:11:02 +0200
committeradamw <adam@warski.org>2017-07-24 17:11:02 +0200
commitfc62bf67b23793b3766f527de5ffac73e78d2d18 (patch)
treec62aefd4c9aa06d2d8db1ec0750336bb05ba27ec /akka-http-handler
parent81d290bc8658841f48d8a7fc10d88813eba16ffc (diff)
downloadsttp-fc62bf67b23793b3766f527de5ffac73e78d2d18.tar.gz
sttp-fc62bf67b23793b3766f527de5ffac73e78d2d18.tar.bz2
sttp-fc62bf67b23793b3766f527de5ffac73e78d2d18.zip
Additional empty-body tests
Diffstat (limited to 'akka-http-handler')
-rw-r--r--akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala b/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala
index 49446f2..f0262fc 100644
--- a/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala
+++ b/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala
@@ -173,10 +173,9 @@ class AkkaHttpSttpHandler private (actorSystem: ActorSystem,
decoder.decodeMessage(response)
}
- def close(): Future[Unit] = {
+ override def close(): Unit = {
implicit val ec = this.ec
- if (terminateActorSystemOnClose) actorSystem.terminate().map(_ => ())
- else Future.successful(())
+ if (terminateActorSystemOnClose) actorSystem.terminate()
}
private implicit class RichTry[T](t: Try[T]) {