Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #577 (defect)

Opened 2 years ago

Last modified 2 years ago

GzipFilter doesn't force an update of the Content-Length header

Status: closed (fixed)

Reported by: sylvain@plutinosoft.com Assigned to: rdelon
Priority: normal Milestone: 3.0
Component: CherryPy code Keywords:
Cc:

When the GzipFilter is used, the body is changed and the length is affected. The _cphttptools.py doesn't update the header "Content-Length" of the response if the content is not a stream and if the header already exists.

A workaround is for the GzipFilter to remove the Content-Length header from the response before returning. This forces the Response.finalize to recalculate the proper content length from the compressed body and update the header.

Change History

10/13/06 13:17:48: Modified by lawouach

  • milestone set to 3.0.

10/20/06 02:15:21: Modified by fumanchu

  • status changed from new to closed.
  • resolution set to fixed.

Fixed for CP 3 in [1402].

12/11/06 14:36:54: Modified by fumanchu

2.x fix in [1519].

Hosted by WebFaction

Log in as guest/cpguest to create tickets