消息 [136497]
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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-05-22 02:58:45 | Scott.Wimer | 修改 | recipients:
+ Scott.Wimer |
| 2011-05-22 02:58:44 | Scott.Wimer | 修改 | messageid: <1306033124.86.0.836605602237.issue12144@psf.upfronthosting.co.za> |
| 2011-05-22 02:58:44 | Scott.Wimer | 链接 | issue12144 messages |
| 2011-05-22 02:58:44 | Scott.Wimer | 创建 | |
|