diff options
author | adamw <adam@warski.org> | 2017-08-30 13:38:27 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-08-30 13:38:27 +0200 |
commit | dc417df3abb3d775bd1cd71b23f591b9aef33533 (patch) | |
tree | 01b9ec065335e4fb70b69c10d9a04aad92da3633 /akka-http-handler/src/main | |
parent | 227e1d6f4433a15dfc3529bac8387540945009cf (diff) | |
download | sttp-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/src/main')
-rw-r--r-- | akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala | 2 |
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))) } } |