Skip to content

Commit 9e37626

Browse files
committed
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 (cherry picked from commit 4889f66)
1 parent b1f3978 commit 9e37626

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/filters/mod_deflate.c

+4
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,10 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
940940
}
941941

942942
deflateEnd(&ctx->stream);
943+
944+
/* We've ended the libz stream, so remove ourselves. */
945+
ap_remove_output_filter(f);
946+
943947
/* No need for cleanup any longer */
944948
apr_pool_cleanup_kill(r->pool, ctx, deflate_ctx_cleanup);
945949

0 commit comments

Comments
 (0)