From 540684ac608e32459bacd9445962e4351b318234 Mon Sep 17 00:00:00 2001 From: stbuehler Date: Sun, 25 Oct 2009 17:32:50 +0000 Subject: Set content-length in mod_compress (fixes #2089, thx liming) git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2676 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/mod_compress.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index ff70ba1e..e162c25d 100644 --- a/NEWS +++ b/NEWS @@ -150,6 +150,7 @@ NEWS * Reopen out stream in X-Rewrite (fixes #1678) * Remove joblist thread, don't use timed pops for async queues * Fix mod_cgi hang on "crash-before-header-sent" bug + * Set content-length in mod_compress (fixes #2089, thx liming) - 1.5.0-r19.. - * -F option added for spawn-fcgi diff --git a/src/mod_compress.c b/src/mod_compress.c index 8c03e90f..7e72fb4a 100644 --- a/src/mod_compress.c +++ b/src/mod_compress.c @@ -820,6 +820,8 @@ PHYSICALPATH_FUNC(mod_compress_physical) { CONST_STR_LEN("Content-Type"), CONST_BUF_LEN(sce->content_type)); + con->response.content_length = chunkqueue_length(con->send); + if (con->conf.log_request_handling) TRACE("looks like %s could be compressed", SAFE_BUF_STR(con->physical.path)); return HANDLER_FINISHED; } -- cgit v1.2.1