413066 accept lower case method: head
This commit is contained in:
parent
0b3d91e94e
commit
11e0b57f68
|
@ -118,8 +118,7 @@ public class HttpTransportOverSPDY implements HttpTransport
|
||||||
// info!=null content!=null lastContent==true reply, commit with content and complete
|
// info!=null content!=null lastContent==true reply, commit with content and complete
|
||||||
|
|
||||||
short version = stream.getSession().getVersion();
|
short version = stream.getSession().getVersion();
|
||||||
boolean isHeadRequest = HttpMethod.HEAD.name().equals(requestHeaders.get(HTTPSPDYHeader.METHOD.name(version))
|
boolean isHeadRequest = HttpMethod.HEAD.name().equalsIgnoreCase(requestHeaders.get(HTTPSPDYHeader.METHOD.name(version)).value());
|
||||||
.value());
|
|
||||||
boolean hasContent = BufferUtil.hasContent(content) && !isHeadRequest;
|
boolean hasContent = BufferUtil.hasContent(content) && !isHeadRequest;
|
||||||
|
|
||||||
if (info != null)
|
if (info != null)
|
||||||
|
|
Loading…
Reference in New Issue