Skip to content

Commit

Permalink
proxy: case insensitive compare of Expect: 100-continue header (#1922)
Browse files Browse the repository at this point in the history
From the RFC:  "Comparison of expectation values is case-insensitive for unquoted tokens (including the 100-continue token), and is case-sensitive for quoted-string expectation-extensions. "

Signed-off-by: Steven Schlansker <stevenschlansker@gmail.com>
  • Loading branch information
stevenschlansker authored and gregw committed Oct 28, 2017
1 parent 843f7e8 commit 090ce91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ protected boolean hasContent(HttpServletRequest clientRequest)

protected boolean expects100Continue(HttpServletRequest request)
{
return HttpHeaderValue.CONTINUE.asString().equals(request.getHeader(HttpHeader.EXPECT.asString()));
return HttpHeaderValue.CONTINUE.is(request.getHeader(HttpHeader.EXPECT.asString()));
}

protected void copyRequestHeaders(HttpServletRequest clientRequest, Request proxyRequest)
Expand Down

0 comments on commit 090ce91

Please sign in to comment.