Submitted by: Kess
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101021
13f79535-47bb-0310-9956-
ffa450edef68
[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]
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 {
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 {