1
0
mirror of https://github.com/django/django.git synced 2025-10-29 00:26:07 +00:00

Fixed #12544 and #13600 -- Fixed static files serving view to catch invalid date from If-Modified-Since header. Thanks akaihola and SmileyChris for patches.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13870 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel
2010-09-26 20:44:56 +00:00
parent a686096c26
commit 94096e83e9
2 changed files with 35 additions and 1 deletions

View File

@@ -135,6 +135,6 @@ def was_modified_since(header=None, mtime=0, size=0):
raise ValueError
if mtime > header_mtime:
raise ValueError
except (AttributeError, ValueError):
except (AttributeError, ValueError, OverflowError):
return True
return False