Skip to content

Commit

Permalink
Update PostgrestRepository.java
Browse files Browse the repository at this point in the history
report fix headers
  • Loading branch information
arnaud-thorel-of authored Feb 8, 2024
1 parent 9819ecb commit b992818
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,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 b992818

Please sign in to comment.