Author: mtredinnick
Date: 2007-08-12 08:10:45 -0500 (Sun, 12 Aug 2007)
New Revision: 5878
Modified:
django/trunk/django/middleware/common.py
Log:
Fixed #4994 -- Send back set-cookie headers in "not modified" responses. Well
spotted, [EMAIL PROTECTED]
Modified: django/trunk/django/middleware/common.py
===================================================================
--- django/trunk/django/middleware/common.py 2007-08-12 12:59:41 UTC (rev
5877)
+++ django/trunk/django/middleware/common.py 2007-08-12 13:10:45 UTC (rev
5878)
@@ -80,7 +80,9 @@
else:
etag = md5.new(response.content).hexdigest()
if response.status_code >= 200 and response.status_code < 300 and
request.META.get('HTTP_IF_NONE_MATCH') == etag:
+ cookies = response.cookies
response = http.HttpResponseNotModified()
+ response.cookies = cookies
else:
response['ETag'] = etag
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---