sashahart/cookies — pull request #6 by ngo (2014-04-04 11:13:05+00:00)
Title: MAX_AGE_AV regexp: account for Max-Age=0

Some of the web frameworks (e.g. Plone) use the following trick to clear cookies after logout:
Set-Cookie: auth=deleted; Max-Age=0
cookies.py currently chokes in those cases because the RFC forbids that (the leading digit must be non-zero).
...
I think the "liberal parsing" principle should be applied here to make this library more useful in the real world.