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 demian.brecht
Recipients demian.brecht, r.david.murray
Date 2019-01-24.23:51:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548373893.82.0.614017647199.issue20911@roundup.psfhosted.org>
In-reply-to
Content
>>> urlopen('https://example.com').info()
<http.client.HTTPMessage object at 0x111528da0>
>>> urlopen('http://example.com').info()
<http.client.HTTPMessage object at 0x111528be0>
>>> urlopen('ftp://speedtest.tele2.net').info()
<email.message.Message object at 0x111531080>
>>> urlopen('file:///path/to/setup.py').info()
<email.message.Message object at 0x111528f60>

I've taken a look at the rest of the handlers in urllib.request and they all build headers consistently with email.message_from_string().

Closing as out of date.
History
Date User Action Args
2019-01-24 23:51:35demian.brechtsetrecipients: + demian.brecht, r.david.murray
2019-01-24 23:51:33demian.brechtsetmessageid: <1548373893.82.0.614017647199.issue20911@roundup.psfhosted.org>
2019-01-24 23:51:33demian.brechtlinkissue20911 messages
2019-01-24 23:51:33demian.brechtcreate