]> git.ipfire.org Git - thirdparty/tornado.git/commit
Set the request cookies property to an empty dict if cookie parsing fails 428/head
authorJacob Sondergaard <jacob@nephics.com>
Thu, 5 Jan 2012 11:17:01 +0000 (12:17 +0100)
committerJacob Sondergaard <jacob@nephics.com>
Thu, 5 Jan 2012 11:17:01 +0000 (12:17 +0100)
commit756fadac7cd3bb669cc2552a1ef165f2719ba804
tree37d4e2abd917f2a9717d78048e2a30dfbc2449e2
parentbd034933356f7ce6db44263bed48a0fe626479d5
Set the request cookies property to an empty dict if cookie parsing fails

This commit reverses the bug introduced in commit 4a4d871, leaving an
undefined cookies property on failure to parse a request cookie.

The bug results in a 'NoneType is not iterable' error when calling
RequestHandler.get_cookie() after a cookie parsing exception.
tornado/httpserver.py