/[Apache-SVN]/httpd/httpd/trunk/modules/filters/mod_deflate.c
ViewVC logotype

Diff of /httpd/httpd/trunk/modules/filters/mod_deflate.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 563154, Mon Aug 6 14:37:42 2007 UTC revision 563229, Mon Aug 6 19:22:23 2007 UTC
# Line 1000  static apr_status_t inflate_out_filter(a Line 1000  static apr_status_t inflate_out_filter(a
1000              return ap_pass_brigade(f->next, bb);              return ap_pass_brigade(f->next, bb);
1001          }          }
1002    
         /* these are unlikely to be set anyway, but ... */  
         apr_table_unset(r->headers_out, "Content-Length");  
         apr_table_unset(r->headers_out, "Content-MD5");  
   
1003          f->ctx = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx));          f->ctx = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx));
1004          ctx->bb = apr_brigade_create(r->pool, f->c->bucket_alloc);          ctx->bb = apr_brigade_create(r->pool, f->c->bucket_alloc);
1005          ctx->buffer = apr_palloc(r->pool, c->bufferSize);          ctx->buffer = apr_palloc(r->pool, c->bufferSize);
# Line 1036  static apr_status_t inflate_out_filter(a Line 1032  static apr_status_t inflate_out_filter(a
1032          apr_pool_cleanup_register(r->pool, ctx, deflate_ctx_cleanup,          apr_pool_cleanup_register(r->pool, ctx, deflate_ctx_cleanup,
1033                                    apr_pool_cleanup_null);                                    apr_pool_cleanup_null);
1034    
1035            /* these are unlikely to be set anyway, but ... */
1036          apr_table_unset(r->headers_out, "Content-Length");          apr_table_unset(r->headers_out, "Content-Length");
1037            apr_table_unset(r->headers_out, "Content-MD5");
1038    
1039          /* initialize inflate output buffer */          /* initialize inflate output buffer */
1040          ctx->stream.next_out = ctx->buffer;          ctx->stream.next_out = ctx->buffer;

Legend:
Removed from v.563154  
changed lines
  Added in v.563229

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2