[master] 61b0dcf Revert "Print 0, not - for zero-byte replies"

Tollef Fog Heen tfheen at varnish-cache.org
Fri Jul 15 11:56:15 CEST 2011


commit 61b0dcfb45c972c9319a7208c1aa4a308710568b
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Fri Jul 15 11:50:06 2011 +0200

    Revert "Print 0, not - for zero-byte replies"
    
    "-" is correct according to the Apache LogFormat documentation on
    http://httpd.apache.org/docs/current/mod/mod_log_config.html
    
    This reverts commit fe7e315cb98ffdc2e4f510e43c7b54bc1af840c1.
    
    See #949

diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index 6aea3d8..ce58fdc 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -594,7 +594,7 @@ h_ncsa(void *priv, enum VSL_tag_e tag, unsigned fd,
 
 		case 'b':
 			/* %b */
-			VSB_cat(os, lp->df_b ? lp->df_b : "0");
+			VSB_cat(os, lp->df_b ? lp->df_b : "-");
 			break;
 
 		case 'H':



More information about the varnish-commit mailing list