[utils] fix bug in cache_and_validate

Thanks to Jean Christophe André for the patch.

Fixes #1359
This commit is contained in:
Benjamin Dauvergne 2012-04-18 21:19:16 +02:00
parent d6929fa152
commit ccc0d0b337
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ def cache_and_validate(timeout, hashing=hashlib.md5):
else:
content = f(request, *args, **kwargs)
if old_content == content.content:
data = (now, last_modified, etag, old_content)
data = (now, last_modified, etag, mime_type, old_content)
return data
else:
content = f(request, *args, **kwargs)