]> granicus.if.org Git - apache/commit
Make the header filter decide if a body should be sent. This gives us a
authorRyan Bloom <rbb@apache.org>
Tue, 14 Nov 2000 06:07:40 +0000 (06:07 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 14 Nov 2000 06:07:40 +0000 (06:07 +0000)
commitb31bf6e631b8d7a5090db1460e348a8e14f9af4f
treedf29e4f965cf97def63ef9baebe0696b0d0ca130
parent66b3a62de894f6edb484fd67927d72bfb3f47b30
Make the header filter decide if a body should be sent.  This gives us a
chance to compute the proper content-length before we try to send a set
of headers.  If a handler wants to ignore the HEAD method, then it can
either just return from the handler function or pass an EOS bucket down
the filter stack.  Either method will still get the headers sent to the
client.

This change allows handlers to actually run the request like it is a GET
request.  The core itself will then ensure that no body is sent.  This
allows us to get more information about the request before sending out the
headers for the HEAD request.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86954 13f79535-47bb-0310-9956-ffa450edef68
modules/http/http_protocol.c