From 11e0b57f68d62e7d0c9542adf17c1139cd12ec33 Mon Sep 17 00:00:00 2001 From: Thomas Becker Date: Tue, 16 Jul 2013 16:27:59 +0200 Subject: [PATCH] 413066 accept lower case method: head --- .../eclipse/jetty/spdy/server/http/HttpTransportOverSPDY.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDY.java b/jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDY.java index 4c3a7c20bd1..ea8e35837b3 100644 --- a/jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDY.java +++ b/jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDY.java @@ -118,8 +118,7 @@ public class HttpTransportOverSPDY implements HttpTransport // info!=null content!=null lastContent==true reply, commit with content and complete short version = stream.getSession().getVersion(); - boolean isHeadRequest = HttpMethod.HEAD.name().equals(requestHeaders.get(HTTPSPDYHeader.METHOD.name(version)) - .value()); + boolean isHeadRequest = HttpMethod.HEAD.name().equalsIgnoreCase(requestHeaders.get(HTTPSPDYHeader.METHOD.name(version)).value()); boolean hasContent = BufferUtil.hasContent(content) && !isHeadRequest; if (info != null)