[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Content-Length in HEAD responses

From: Branko Čibej <brane_at_wandisco.com>
Date: Sat, 10 Nov 2012 05:37:57 +0100

On 10.11.2012 04:59, Justin Erenkrantz wrote:
> On Fri, Nov 9, 2012 at 10:15 AM, C. Michael Pilato <cmpilato_at_collab.net>wrote:
>
>> request, so I'm wondering ... does Apache just handle a HEAD as a GET
>> under-the-hood and then discard the resulting response body? The comment
>>
> Unless the handler does something special, yes, httpd will treat HEAD as a
> GET until it is time to send the response body...and simply drops the
> response body.
>

That would imply that, if content-length doesn't get set on a HEAD
response, but Transfer-Encoding: chunked does, then everything is
correct, right? If somewhat inefficient.

-- 
Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Received on 2012-11-10 05:38:37 CET

This is an archived mail posted to the Subversion Dev mailing list.