proxy: case insensitive compare of Expect: 100-continue header (#1922)

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>
This commit is contained in:
Steven Schlansker 2017-10-28 14:22:12 -07:00 committed by Greg Wilkins
parent 843f7e8ee4
commit 090ce919dd
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ public abstract class AbstractProxyServlet extends HttpServlet
protected boolean expects100Continue(HttpServletRequest request) 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) protected void copyRequestHeaders(HttpServletRequest clientRequest, Request proxyRequest)