aboutsummaryrefslogtreecommitdiff
path: root/akka-http-handler
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-08-30 13:38:27 +0200
committeradamw <adam@warski.org>2017-08-30 13:38:27 +0200
commitdc417df3abb3d775bd1cd71b23f591b9aef33533 (patch)
tree01b9ec065335e4fb70b69c10d9a04aad92da3633 /akka-http-handler
parent227e1d6f4433a15dfc3529bac8387540945009cf (diff)
downloadsttp-dc417df3abb3d775bd1cd71b23f591b9aef33533.tar.gz
sttp-dc417df3abb3d775bd1cd71b23f591b9aef33533.tar.bz2
sttp-dc417df3abb3d775bd1cd71b23f591b9aef33533.zip
Rename field in request specifiction for consistency with setting response handling method
Diffstat (limited to 'akka-http-handler')
-rw-r--r--akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala2
1 files changed, 1 insertions, 1 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 4a28b2b..1759b2b 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
@@ -41,7 +41,7 @@ class AkkaHttpSttpHandler private (actorSystem: ActorSystem,
.flatMap(Http().singleRequest(_))
.flatMap { hr =>
val code = hr.status.intValue()
- bodyFromAkka(r.responseAs, decodeAkkaResponse(hr))
+ bodyFromAkka(r.response, decodeAkkaResponse(hr))
.map(Response(_, code, headersFromAkka(hr)))
}
}