helidon icon indicating copy to clipboard operation
helidon copied to clipboard

Usage of addHeader method on the WebClient.Builder duplicates headers

Open Verdent opened this issue 1 year ago • 0 comments

Use method addHeader on the WebClient.Builder, create WebClient and perfom any request on this client. All registered headers over the WebClient.Builder are duplicated.

WebClient.builder()
            .baseUri(someUri)
            .addHeader("TestHeader", "Value")
            .build()
            .get("/someEndpoint")
            .request();

If headers are registered directly to the request builder, it works without duplication.

Verdent avatar Jan 18 '24 16:01 Verdent