Skip to content

Commit

Permalink
HTTP header names are case insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Mar 12, 2020
1 parent 6fd2c55 commit 74179a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)

private void copyHeaders(HttpResponse seResponse, DefaultHttpResponse first) {
for (String name : seResponse.getHeaderNames()) {
if (CONTENT_LENGTH.contentEquals(name) || TRANSFER_ENCODING.contentEquals(name)) {
if (CONTENT_LENGTH.contentEqualsIgnoreCase(name) || TRANSFER_ENCODING.contentEqualsIgnoreCase(name)) {
continue;
}
for (String value : seResponse.getHeaders(name)) {
Expand Down

0 comments on commit 74179a8

Please sign in to comment.