From 090ce919ddd3eb30af664e0a1caed918b475ff55 Mon Sep 17 00:00:00 2001 From: Steven Schlansker Date: Sat, 28 Oct 2017 14:22:12 -0700 Subject: [PATCH] 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 --- .../main/java/org/eclipse/jetty/proxy/AbstractProxyServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-proxy/src/main/java/org/eclipse/jetty/proxy/AbstractProxyServlet.java b/jetty-proxy/src/main/java/org/eclipse/jetty/proxy/AbstractProxyServlet.java index e0b971e5047..9cf0dd5e5b8 100644 --- a/jetty-proxy/src/main/java/org/eclipse/jetty/proxy/AbstractProxyServlet.java +++ b/jetty-proxy/src/main/java/org/eclipse/jetty/proxy/AbstractProxyServlet.java @@ -433,7 +433,7 @@ public abstract class AbstractProxyServlet extends HttpServlet 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)