aboutsummaryrefslogtreecommitdiff
path: root/async-http-client-handler
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-08-31 15:11:01 +0200
committeradamw <adam@warski.org>2017-08-31 15:11:01 +0200
commit666755ede0d221c11c1eac6aac57ce3d18c42c8b (patch)
tree497fb484a20b9f3aa6c424e9b2d0fdccf27591ab /async-http-client-handler
parent9ec0994878856743e54c4d1a38c0c80b318d7be7 (diff)
downloadsttp-666755ede0d221c11c1eac6aac57ce3d18c42c8b.tar.gz
sttp-666755ede0d221c11c1eac6aac57ce3d18c42c8b.tar.bz2
sttp-666755ede0d221c11c1eac6aac57ce3d18c42c8b.zip
Keep a history of redirect responses
Diffstat (limited to 'async-http-client-handler')
-rw-r--r--async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala b/async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala
index 8b908cb..06124b7 100644
--- a/async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala
+++ b/async-http-client-handler/src/main/scala/com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala
@@ -252,7 +252,8 @@ abstract class AsyncHttpClientHandler[R[_], S](asyncHttpClient: AsyncHttpClient,
.iterator()
.asScala
.map(e => (e.getKey, e.getValue))
- .toList)
+ .toList,
+ Nil)
}
private def eagerResponseHandler(response: AsyncResponse) =