From: Ruediger Pluem Date: Mon, 6 Aug 2007 19:22:23 +0000 (+0000) Subject: * We already unset Content-Length in the inflate_out_filter. So move the X-Git-Tag: 2.3.0~1637 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5984977049aef16338c67119d51ca44fe57e40fc;p=thirdparty%2Fapache%2Fhttpd.git * 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 --- diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 959bdc15703..63a3c1d5e09 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;