This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author andrei.avk
Recipients andrei.avk, kj, sxt1001, vstinner
Date 2021-11-23.02:45:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637635529.72.0.419026693735.issue45572@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-11-23 02:45:29andrei.avksetrecipients: + andrei.avk, vstinner, kj, sxt1001
2021-11-23 02:45:29andrei.avksetmessageid: <1637635529.72.0.419026693735.issue45572@roundup.psfhosted.org>
2021-11-23 02:45:29andrei.avklinkissue45572 messages
2021-11-23 02:45:29andrei.avkcreate