Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4994 -- Send back set-cookie headers in "not modified" respons…

…es. Well spotted, colin@owlfish.com.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5878 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0e7299e10ad527824953be217803f61526919d4b 1 parent 56e28b4
Malcolm Tredinnick authored August 12, 2007

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  django/middleware/common.py
2  django/middleware/common.py
@@ -80,7 +80,9 @@ def process_response(self, request, response):
80 80
             else:
81 81
                 etag = md5.new(response.content).hexdigest()
82 82
             if response.status_code >= 200 and response.status_code < 300 and request.META.get('HTTP_IF_NONE_MATCH') == etag:
  83
+                cookies = response.cookies
83 84
                 response = http.HttpResponseNotModified()
  85
+                response.cookies = cookies
84 86
             else:
85 87
                 response['ETag'] = etag
86 88
 

0 notes on commit 0e7299e

Please sign in to comment.
Something went wrong with that request. Please try again.