Changeset 8215 for django/branches/gis/django/middleware
- Timestamp:
- 08/05/08 12:15:33 (4 months ago)
- Files:
-
- django/branches/gis (modified) (1 prop)
- django/branches/gis/django/middleware/common.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis
- Property svnmerge-integrated changed from /django/trunk:1-7978 to /django/trunk:1-8214
django/branches/gis/django/middleware/common.py
r7768 r8215 1 import md52 1 import re 3 2 … … 7 6 from django.utils.http import urlquote 8 7 from django.core import urlresolvers 8 from django.utils.hashcompat import md5_constructor 9 9 10 10 class CommonMiddleware(object): … … 22 22 appending a slash at the end. If this new URL is found in 23 23 urlpatterns, then an HTTP-redirect is returned to this new URL; 24 otherwise the initial URL is processed as usual. 24 otherwise the initial URL is processed as usual. 25 25 26 26 - ETags: If the USE_ETAGS setting is set, ETags will be calculated from … … 109 109 etag = response['ETag'] 110 110 else: 111 etag = '"%s"' % md5 .new(response.content).hexdigest()111 etag = '"%s"' % md5_constructor(response.content).hexdigest() 112 112 if response.status_code >= 200 and response.status_code < 300 and request.META.get('HTTP_IF_NONE_MATCH') == etag: 113 113 cookies = response.cookies
