Don't raise when failing to hex decode XSRF v1

This commit is contained in:
William Tisäter 2014-07-08 09:07:48 +02:00
parent d881dd2f87
commit 2299cf96bb
1 changed files with 1 additions and 1 deletions

View File

@ -1145,7 +1145,7 @@ class RequestHandler(object):
try:
token = binascii.a2b_hex(utf8(cookie))
except TypeError:
raise HTTPError(400, "XSRF cookie is not a hexadecimal")
token = utf8(cookie)
# We don't have a usable timestamp in older versions.
timestamp = int(time.time())
return (version, token, timestamp)