Django

Code

Ticket #5897 (new)

Opened 1 year ago

Last modified 5 months ago

Add Content-Length header in common middleware

Reported by: Scott Barr <scott@divisionbyzero.com.au> Assigned to: nobody
Milestone: Component: HTTP handling
Version: SVN Keywords: Content-Length middleware
Cc: Triage Stage: Design decision needed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

I've modified django.middleware.common.py to add a "Content-Length" header to the HTTP response if the response code is 200 and the "Content-Length" header hasn't already been supplied.

Attachments

middleware.common.patch (0.5 kB) - added by Scott Barr <scott@divisionbyzero.com.au> on 11/08/07 06:25:31.
Patch

Change History

11/08/07 06:25:31 changed by Scott Barr <scott@divisionbyzero.com.au>

  • attachment middleware.common.patch added.

Patch

02/16/08 16:04:50 changed by Simon Greenhill <dev@simon.net.nz>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Ready for checkin.
  • needs_tests changed.
  • needs_docs changed.

07/07/08 20:52:46 changed by adrian

Hmmm, what's the advantage of doing this? I don't necessarily like the overhead of doing a len() on every request...

07/07/08 20:52:53 changed by adrian

  • stage changed from Ready for checkin to Design decision needed.

Add/Change #5897 (Add Content-Length header in common middleware)




Change Properties
Action