diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2009-10-25 17:32:50 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2009-10-25 17:32:50 +0000 |
commit | 540684ac608e32459bacd9445962e4351b318234 (patch) | |
tree | 7d911510229c6a5df6b8b5197e47f7a52daa8465 | |
parent | 7053f02991b5a9a34caa27b086ae06ac98c88e7b (diff) | |
download | lighttpd-540684ac608e32459bacd9445962e4351b318234.tar.gz |
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
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/mod_compress.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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; } |