From 027ec2417d4c4f93c249ad44d91880bc78063fe5 Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Sat, 8 Apr 2023 19:53:31 +0900 Subject: [PATCH] fix warning in CachingAsyncHttpClient --- .../play/api/libs/ws/ahc/cache/CachingAsyncHttpClient.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/cache/CachingAsyncHttpClient.scala b/play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/cache/CachingAsyncHttpClient.scala index cedd1feb..73d6c513 100644 --- a/play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/cache/CachingAsyncHttpClient.scala +++ b/play-ahc-ws-standalone/src/main/scala/play/api/libs/ws/ahc/cache/CachingAsyncHttpClient.scala @@ -220,7 +220,7 @@ class CachingAsyncHttpClient(underlying: AsyncHttpClient, ahcHttpCache: AhcHttpC } protected def composeRequest(request: Request)(block: RequestBuilder => RequestBuilder): Request = { - val rb = new RequestBuilder(request) + val rb = request.toBuilder val builder = block(rb) builder.build() }