aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-07-16 10:27:59 (EDT)
committerThomas Becker2013-07-16 10:27:59 (EDT)
commit11e0b57f68d62e7d0c9542adf17c1139cd12ec33 (patch)
tree33a494382805004fd279c7755a80a0e341c7fd7b
parent0b3d91e94ecbc1b1f1d88f9b88d81b4aa867e7d0 (diff)
downloadorg.eclipse.jetty.project-11e0b57f68d62e7d0c9542adf17c1139cd12ec33.zip
org.eclipse.jetty.project-11e0b57f68d62e7d0c9542adf17c1139cd12ec33.tar.gz
org.eclipse.jetty.project-11e0b57f68d62e7d0c9542adf17c1139cd12ec33.tar.bz2
413066 accept lower case method: head
-rw-r--r--jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDY.java3
1 files changed, 1 insertions, 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 4c3a7c2..ea8e358 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)