aboutsummaryrefslogtreecommitdiff
path: root/async-http-client-backend
diff options
context:
space:
mode:
authorintracer <intracer@gmail.com>2018-01-09 23:12:34 +0200
committerintracer <intracer@gmail.com>2018-01-09 23:12:34 +0200
commitda85f559573c9353185cb553290082c0bbdaf6d0 (patch)
tree7f53dae8999c1d66ba668b657f3f3ac4dc57201a /async-http-client-backend
parent200dc81942cf72974f8eb870e3b1a37ef375e4a1 (diff)
downloadsttp-da85f559573c9353185cb553290082c0bbdaf6d0.tar.gz
sttp-da85f559573c9353185cb553290082c0bbdaf6d0.tar.bz2
sttp-da85f559573c9353185cb553290082c0bbdaf6d0.zip
add status message to Response #59
Diffstat (limited to 'async-http-client-backend')
-rw-r--r--async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala b/async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala
index 885e5a9..fb0f780 100644
--- a/async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala
+++ b/async-http-client-backend/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientBackend.scala
@@ -252,6 +252,7 @@ abstract class AsyncHttpClientBackend[R[_], S](asyncHttpClient: AsyncHttpClient,
private def readResponseNoBody(response: AsyncResponse): Response[Unit] = {
Response(Right(()),
response.getStatusCode,
+ response.getStatusText,
response.getHeaders
.iterator()
.asScala