Skip to content

Commit

Permalink
fix duplicate content-type header in AHC client
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Nov 1, 2023
1 parent 6b76100 commit 01199ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private Request asAhcRequest(final ApiHttpRequest request) {
mediaType = AsciiString
.of(Objects.requireNonNull(request.getHeaders().getFirst(ApiHttpHeaders.CONTENT_TYPE)));
}
builder.addHeader(ApiHttpHeaders.CONTENT_TYPE, mediaType);
builder.setHeader(ApiHttpHeaders.CONTENT_TYPE, mediaType);
});
return builder.build();
}
Expand Down

0 comments on commit 01199ca

Please sign in to comment.