From: Joe Orton Date: Wed, 20 Dec 2023 13:07:40 +0000 (+0000) Subject: mod_deflate: remove filter after seeing EOS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4889f667f8c9b8f09843b7c79c12c78a0e325d07;p=thirdparty%2Fapache%2Fhttpd.git mod_deflate: remove filter after seeing EOS Submitted by: Eric Norris Github: closes #387 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1914800 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index b7a68d2d439..ad753dc6181 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);