summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-09-26 21:12:56 +0200
committerClaude Paroz <claude@2xlibre.net>2012-09-26 21:12:56 +0200
commit3cbe686af6b6a3f23a607b2eb7497c55d88e8345 (patch)
tree512f3c7f2930905964d91574f879de285f480eed /django
parentb3ee80a0cf0e60876f03b797d2bdc69505dbdfcb (diff)
Fixed #18675 -- Fixed was_modified_since with floating-point mtime
Thanks Simon Charette for the patch.
Diffstat (limited to 'django')
-rw-r--r--django/views/static.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/static.py b/django/views/static.py
index 2ff22ce13f..7dd44c5772 100644
--- a/django/views/static.py
+++ b/django/views/static.py
@@ -138,7 +138,7 @@ def was_modified_since(header=None, mtime=0, size=0):
header_len = matches.group(3)
if header_len and int(header_len) != size:
raise ValueError
- if mtime > header_mtime:
+ if int(mtime) > header_mtime:
raise ValueError
except (AttributeError, ValueError, OverflowError):
return True