From 666755ede0d221c11c1eac6aac57ce3d18c42c8b Mon Sep 17 00:00:00 2001 From: adamw Date: Thu, 31 Aug 2017 15:11:01 +0200 Subject: Keep a history of redirect responses --- .../com/softwaremill/sttp/asynchttpclient/AsyncHttpClientHandler.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'async-http-client-handler') 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) = -- cgit v1.2.3