我想要的效果是head方法能正确显示get方法的Content-Length,而不是Content-Length为0。
正确的实现方式是什么?
正确的实现方式是什么?
|
yemoluoAug 6, 2013
1
head 方法返回值是没有body的...
|
|
yemoluoAug 6, 2013
2
看 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. |