]> granicus.if.org Git - apache/commitdiff
* We already unset Content-Length in the inflate_out_filter. So move the
authorRuediger Pluem <rpluem@apache.org>
Mon, 6 Aug 2007 19:22:23 +0000 (19:22 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 6 Aug 2007 19:22:23 +0000 (19:22 +0000)
  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

index 959bdc15703df4a2f26aee61e539bdff2ee0e3bc..63a3c1d5e09afaa19f029e415430aff8a836b003 100644 (file)
@@ -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;