Skip to content

Commit

Permalink
fix/22-fix-infinite-add-header fix infinite add in header (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-frage-ouest-france authored Feb 7, 2024
1 parent 6d388ae commit c06e7e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public T getOne(Object criteria) {
private Map<String, List<String>> headerMap(Header.Method method) {
Map<String, List<String>> map = new LinkedHashMap<>();
Optional.ofNullable(headersMap.get(method))
.ifPresent(map::putAll);
.ifPresent(headerMap -> headerMap.forEach((key, value) -> map.computeIfAbsent(key, x -> new ArrayList<>()).addAll(value)));
return map;
}
}

0 comments on commit c06e7e4

Please sign in to comment.