From 5984977049aef16338c67119d51ca44fe57e40fc Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Mon, 6 Aug 2007 19:22:23 +0000 Subject: [PATCH] * We already unset Content-Length in the inflate_out_filter. So move the comment and unsetting of Content-MD5 in the right place. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@563229 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_deflate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 959bdc1570..63a3c1d5e0 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -1000,10 +1000,6 @@ static apr_status_t inflate_out_filter(ap_filter_t *f, return ap_pass_brigade(f->next, bb); } - /* these are unlikely to be set anyway, but ... */ - apr_table_unset(r->headers_out, "Content-Length"); - apr_table_unset(r->headers_out, "Content-MD5"); - f->ctx = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx)); ctx->bb = apr_brigade_create(r->pool, f->c->bucket_alloc); ctx->buffer = apr_palloc(r->pool, c->bufferSize); @@ -1036,7 +1032,9 @@ static apr_status_t inflate_out_filter(ap_filter_t *f, apr_pool_cleanup_register(r->pool, ctx, deflate_ctx_cleanup, apr_pool_cleanup_null); + /* these are unlikely to be set anyway, but ... */ apr_table_unset(r->headers_out, "Content-Length"); + apr_table_unset(r->headers_out, "Content-MD5"); /* initialize inflate output buffer */ ctx->stream.next_out = ctx->buffer; -- 2.40.0