]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_deflate: remove filter after seeing EOS
authorJoe Orton <jorton@apache.org>
Wed, 20 Dec 2023 13:07:40 +0000 (13:07 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 20 Dec 2023 13:07:40 +0000 (13:07 +0000)
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

modules/filters/mod_deflate.c

index b7a68d2d43959fd14462b48d4af14cbda4df6c14..ad753dc61811726e0327f5229a5e04bb0fcb2d2c 100644 (file)
@@ -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);