diff options
author | Joe Orton <jorton@apache.org> | 2023-12-20 14:07:40 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2023-12-20 14:07:40 +0100 |
commit | 4889f667f8c9b8f09843b7c79c12c78a0e325d07 (patch) | |
tree | cffd2e4bbdea173debb1ce7be92563435e10d3b1 | |
parent | * modules/ssl/ssl_engine_pphrase.c (modssl_load_engine_keypair): Fix (diff) | |
download | apache2-4889f667f8c9b8f09843b7c79c12c78a0e325d07.tar.xz apache2-4889f667f8c9b8f09843b7c79c12c78a0e325d07.zip |
mod_deflate: remove filter after seeing EOS
Submitted by: Eric Norris <enorris etsy.com>
Github: closes #387
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1914800 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/filters/mod_deflate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index b7a68d2d43..ad753dc618 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -941,6 +941,10 @@ static apr_status_t deflate_out_filter(ap_filter_t *f, } deflateEnd(&ctx->stream); + + /* We've ended the libz stream, so remove ourselves. */ + ap_remove_output_filter(f); + /* No need for cleanup any longer */ apr_pool_cleanup_kill(r->pool, ctx, deflate_ctx_cleanup); |