1
--- build-tree/apache2/server/protocol.c 2004/08/12 17:48:35 1.150
2
+++ build-tree/apache2/server/protocol.c 2004/09/01 12:24:48 1.151
5
* We can only set a C-L in the response header if we haven't already
6
* sent any buckets on to the next output filter for this request.
8
+ * Also check against cases of zero bytes sent, to avoid a bogus
9
+ * C-L on HEAD requests, or no-body GETs like 204s.
11
- if (ctx->data_sent == 0 && eos) {
12
+ if (ctx->data_sent == 0 && eos && r->bytes_sent > 0 ) {
13
ap_set_content_length(r, r->bytes_sent);