django1/django/middleware
Malcolm Tredinnick 3ee3d6b5f3 Fixed #5898 -- Changed a few response processing paths to make things harder to get wrong and easier to get right. Previous behaviour wasn't buggy, but it was harder to use than necessary.
We now have automatic HEAD processing always (previously required ConditionalGetMiddleware), middleware benefits from the Location header rewrite, so they can use relative URLs as well, and responses with response codes 1xx, 204 or 304 will always have their content removed, in accordance with the HTTP spec (so it's much harder to indavertently deliver invalid responses).

Based on a patch and diagnosis from regexbot@gmail.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-11 03:55:44 +00:00
..
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
cache.py Fixed #3808 -- Fixed some typos in comments. Thanks, Collin Grady 2007-03-25 18:05:01 +00:00
common.py Fixed #5762 -- Quoted the portions that make up the URL when appending 2007-10-20 08:31:05 +00:00
doc.py Fixed #2747 -- Make X-Headers work for staff members. Admins with dyanmic IP 2006-09-22 03:17:28 +00:00
gzip.py Fixed #5313 -- Only avoid compressing Javascript when the user agent says it's Internet Explorer. Thanks, mgiger@earthbrowser.com. 2007-10-20 03:45:48 +00:00
http.py Fixed #5898 -- Changed a few response processing paths to make things harder to get wrong and easier to get right. Previous behaviour wasn't buggy, but it was harder to use than necessary. 2007-11-11 03:55:44 +00:00
locale.py Fixed #2109 -- Convert old-style classes to new-style classes throughout Django. Thanks, Nicola Larosa 2006-06-08 05:00:13 +00:00
transaction.py Second half of little cleanup tweaks suggested by pyflakes. 2006-07-21 20:39:17 +00:00