From e8c45fbd58c65a5a13663cbc26151830ceeeb94f Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Sun, 21 Aug 2005 23:09:15 +0000 Subject: [PATCH] don't try to compress a empty filename git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@602 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_compress.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod_compress.c b/src/mod_compress.c index 94e812c6..5c626dce 100644 --- a/src/mod_compress.c +++ b/src/mod_compress.c @@ -574,6 +574,10 @@ PHYSICALPATH_FUNC(mod_compress_physical) { con->request.http_method != HTTP_METHOD_POST) { return HANDLER_GO_ON; } + + if (buffer_is_empty(con->physical.path)) { + return HANDLER_GO_ON; + } mod_compress_patch_connection(srv, con, p);