Skip to content

Commit

Permalink
Fixed handling of possible duplicate header keys to default behaviour…
Browse files Browse the repository at this point in the history
… of `Map`.

Signed-off-by: Juergen Fickel <juergen.fickel@bosch.io>
  • Loading branch information
Juergen Fickel committed Oct 18, 2022
1 parent 9289975 commit 85098d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private boolean isTracingDisabledForOperationName(final TraceOperationName trace

private static Map<String, String> getHttpHeadersAsMap(final Iterable<HttpHeader> httpHeaders) {
return StreamSupport.stream(httpHeaders.spliterator(), false)
.collect(Collectors.toMap(HttpHeader::name, HttpHeader::value));
.collect(Collectors.toMap(HttpHeader::name, HttpHeader::value, (oldValue, value) -> value));
}

private static StartedTrace startTrace(
Expand Down

0 comments on commit 85098d3

Please sign in to comment.