Polishing contribution

Closes gh-29958
This commit is contained in:
rstoyanchev
2024-03-12 10:40:08 +00:00
parent 8af1d8e842
commit 6767f7010c
10 changed files with 62 additions and 50 deletions

View File

@@ -266,10 +266,7 @@ final class DefaultClientRequestBuilder implements ClientRequest.Builder {
}));
}
Map<String, Object> requestAttributes = request.getAttributes();
if (!this.attributes.isEmpty()) {
this.attributes.forEach((key, value) -> requestAttributes.put(key, value));
}
request.getAttributes().putAll(this.attributes);
if (this.httpRequestConsumer != null) {
this.httpRequestConsumer.accept(request);