413066 accept lower case method: head

This commit is contained in:
Thomas Becker 2013-07-16 16:27:59 +02:00
parent 0b3d91e94e
commit 11e0b57f68
1 changed files with 1 additions and 2 deletions

View File

@ -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)