我想要的效果是head方法能正确显示get方法的Content-Length,而不是Content-Length为0。
正确的实现方式是什么?
正确的实现方式是什么?
1
yemoluo Aug 6, 2013
head 方法返回值是没有body的...
|
2
yemoluo Aug 6, 2013
看 http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html 中的 head:
The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. |