Message406813
I'm not sure about the hang in 3.7 and CVE, but as far as `get_all()` error is concerned, it's due to passing the wrong kind of argument as `headers`.
For this (undocumented) method, `headers` should be a Message object created in this way, e.g.:
headers = email.message_from_string(
'Content-type: %s\nContent-length: %d\nLast-modified: %s\n' %
(mtype or 'text/plain', size, modified))
(see https://github.com/python/cpython/blob/024209401ebc8a011f242af00efdd8ecece6953d/Lib/urllib/request.py#L1509)
Header obj created in this way does have the `get_all()` method, and I tested that the method runs without further errors. |
|
Date |
User |
Action |
Args |
2021-11-23 02:45:29 | andrei.avk | set | recipients:
+ andrei.avk, vstinner, kj, sxt1001 |
2021-11-23 02:45:29 | andrei.avk | set | messageid: <1637635529.72.0.419026693735.issue45572@roundup.psfhosted.org> |
2021-11-23 02:45:29 | andrei.avk | link | issue45572 messages |
2021-11-23 02:45:29 | andrei.avk | create | |
|