]> granicus.if.org Git - apache/commitdiff
Fix logging of bytes sent for HEAD requests. %b and %B should
authorRyan Bloom <rbb@apache.org>
Sun, 2 Sep 2001 03:21:47 +0000 (03:21 +0000)
committerRyan Bloom <rbb@apache.org>
Sun, 2 Sep 2001 03:21:47 +0000 (03:21 +0000)
log either - or 0, before this patch, they were both logging
the file size.

PR: 8021
Submitted by: Taketo Kabe <kabe@sra-tohoku.co.jp>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90870 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/http/http_protocol.c

diff --git a/CHANGES b/CHANGES
index 64488a49941b96a17da0fe16b7d27bcc071891cf..f41930b376d77c54510800301dfcb002ceb8d35e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
 Changes with Apache 2.0.26-dev
 
+  *) Fix logging of bytes sent for HEAD requests.  %b and %B should
+     log either - or 0, before this patch, they were both logging
+     the file size.  [Taketo Kabe <kabe@sra-tohoku.co.jp>]
+
   *) Make mod_include check for BYTE_CHECK_THRESHOLD per bucket rather 
      than per character.  [Brian Pane <bpane@pacbell.net>]
 
index 86439a7aab86510a64e4954a9bb9b05b12cc1e7b..456f486f38f3ce63e9e95229cc6f4ce2d5327cfa 100644 (file)
@@ -1311,8 +1311,6 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(
 
     terminate_header(b2);
 
-    r->sent_bodyct = 1;         /* Whatever follows is real body stuff... */
-
     ap_pass_brigade(f->next, b2);
 
     if (r->header_only) {
@@ -1321,6 +1319,8 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(
         return OK;
     }
 
+    r->sent_bodyct = 1;         /* Whatever follows is real body stuff... */
+
     if (r->chunked) {
         /* We can't add this filter until we have already sent the headers.
          * If we add it before this point, then the headers will be chunked