Commit 74912924 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

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.

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
parent 8fd5e953
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
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>]

+2 −2
Original line number Diff line number Diff line
@@ -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