summaryrefslogtreecommitdiff
path: root/django/middleware
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-10-10 13:56:39 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-10-10 13:56:39 +0000
commitb4e2d12b1f3f7da728c78de4b790040a0080a2d7 (patch)
treed0e4d5899072565b613f7ce245ae00116ff25c83 /django/middleware
parentf258a8fce28ca65f2cfb3798b36f262c65639190 (diff)
Fixed #599 -- locmem cache now uses deepcopy() to prevent aliasing. Thanks, Hugo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/middleware')
-rw-r--r--django/middleware/cache.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/middleware/cache.py b/django/middleware/cache.py
index 8216c40ae1..04f98122f7 100644
--- a/django/middleware/cache.py
+++ b/django/middleware/cache.py
@@ -1,4 +1,3 @@
-import copy
from django.conf import settings
from django.core.cache import cache
from django.utils.cache import get_cache_key, learn_cache_key, patch_response_headers
@@ -49,7 +48,7 @@ class CacheMiddleware:
return None # No cache information available, need to rebuild.
request._cache_update_cache = False
- return copy.copy(response)
+ return response
def process_response(self, request, response):
"Sets the cache, if needed."