Message136497
When cookielib.CookieJar().make_cookies is used to extract cookies from a urllib2 response, it crashes when it encounters a 'Set-Cookie' header entry that has an 'expires' attribute.
This crash occurs because the expires time is evaluated against the '_now' attribute of the CookieJar instance -- an attribute which is not set unless CookieJar().extract_cookies() was called previously.
Attached is a script that triggers this bug. |
|
Date |
User |
Action |
Args |
2011-05-22 02:58:45 | Scott.Wimer | set | recipients:
+ Scott.Wimer |
2011-05-22 02:58:44 | Scott.Wimer | set | messageid: <1306033124.86.0.836605602237.issue12144@psf.upfronthosting.co.za> |
2011-05-22 02:58:44 | Scott.Wimer | link | issue12144 messages |
2011-05-22 02:58:44 | Scott.Wimer | create | |
|