Skip to content

Commit

Permalink
Make HttpComponentsHeadersAdapter#getFirst nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Apr 3, 2023
1 parent 3a16813 commit 4ac5a1a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class HttpComponentsHeadersAdapter implements MultiValueMap<String, String> {


@Override
@Nullable
public String getFirst(String key) {
Header header = this.message.getFirstHeader(key);
return (header != null ? header.getValue() : null);
Expand Down

0 comments on commit 4ac5a1a

Please sign in to comment.