httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/loggers mod_log_config.c
Date Tue, 19 Aug 2003 16:03:03 GMT
nd          2003/08/19 09:03:03

  Modified:    .        CHANGES
               modules/loggers mod_log_config.c
  Log:
  fix %b format to write really "-" if bytes_sent == 0.
  
  Submitted by: Kess
  
  Revision  Changes    Path
  1.1258    +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.1257
  retrieving revision 1.1258
  diff -u -r1.1257 -r1.1258
  --- CHANGES	19 Aug 2003 12:26:37 -0000	1.1257
  +++ CHANGES	19 Aug 2003 16:03:02 -0000	1.1258
  @@ -2,6 +2,9 @@
   
     [Remove entries to the current 2.0 section below, when backported]
   
  +  *) mod_log_config: Fix %b log format to write really "-" when 0 bytes
  +     were sent (e.g. with 304 or 204 response codes).  [Astrid Keßler]
  +
     *) Fix a bug, where mod_deflate sometimes unconditionally compressed the
        content if the Accept-Encoding header contained only other tokens than
        "gzip" (such as "deflate"). PR 21523.  [Joe Orton, André Malo]
  
  
  
  1.106     +2 -2      httpd-2.0/modules/loggers/mod_log_config.c
  
  Index: mod_log_config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v
  retrieving revision 1.105
  retrieving revision 1.106
  diff -u -r1.105 -r1.106
  --- mod_log_config.c	14 May 2003 02:32:41 -0000	1.105
  +++ mod_log_config.c	19 Aug 2003 16:03:03 -0000	1.106
  @@ -418,7 +418,7 @@
   
   static const char *clf_log_bytes_sent(request_rec *r, char *a)
   {
  -    if (!r->sent_bodyct) {
  +    if (!r->sent_bodyct || !r->bytes_sent) {
           return "-";
       }
       else {
  @@ -428,7 +428,7 @@
   
   static const char *log_bytes_sent(request_rec *r, char *a)
   {
  -    if (!r->sent_bodyct) {
  +    if (!r->sent_bodyct || !r->bytes_sent) {
           return "0";
       }
       else {
  
  
  

Mime
View raw message