diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-08-21 23:09:15 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-08-21 23:09:15 +0000 |
commit | 8a6eca933716679c3db9b1f41fc5b392311871f5 (patch) | |
tree | 3a3554fa857d82a6dc91d5c38b135c774bccfe0c /src/mod_compress.c | |
parent | f267f0ce5f17b7c61a3e5c4932d2f59f54e57d81 (diff) | |
download | lighttpd-git-8a6eca933716679c3db9b1f41fc5b392311871f5.tar.gz |
don't try to compress a empty filename
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@602 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_compress.c')
-rw-r--r-- | src/mod_compress.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |