Skip to content

Commit c79b4a6

Browse files
author
Stephane Landelle
committed
To be fixed up
1 parent e32d19d commit c79b4a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/filters/AsyncHttpClientFilter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.asynchttpclient.Response;
2626
import org.asynchttpclient.UpgradeHandler;
2727
import org.asynchttpclient.listener.TransferCompletionHandler;
28-
import org.asynchttpclient.listener.TransferCompletionHandler.TransferAdapter;
2928
import org.asynchttpclient.providers.grizzly.GrizzlyAsyncHttpProvider;
3029
import org.asynchttpclient.providers.grizzly.GrizzlyResponseFuture;
3130
import org.asynchttpclient.providers.grizzly.HttpTransactionContext;
@@ -317,8 +316,7 @@ private static void initTransferCompletionHandler(final Request request,
317316
if (h instanceof TransferCompletionHandler) {
318317
final FluentCaseInsensitiveStringsMap map =
319318
new FluentCaseInsensitiveStringsMap(request.getHeaders());
320-
TransferCompletionHandler.class.cast(h)
321-
.transferAdapter(new TransferAdapter(map));
319+
TransferCompletionHandler.class.cast(h).headers(map);
322320
}
323321
}
324322

0 commit comments

Comments
 (0)