Message211387
I suggest using setdefault() in urllib.request.AbstractHTTPHandler.do_open():
headers.setdefault("Connection", "close")
I am trying to work around a server that truncates its response when this header is sent, and this change would allow me to specify headers={"Connection", "Keep-Alive"} to get the same effect as dropping the Connection header. This is also consistent with the way the other headers (Accept-Encoding, User-Agent, Host) may be overridden. |
|
| Date |
User |
Action |
Args |
| 2014-02-17 02:32:28 | martin.panter | set | recipients:
+ martin.panter, jcea, orsenthil, r.david.murray, shubhojeet.ghosh, sanxiago |
| 2014-02-17 02:32:28 | martin.panter | set | messageid: <1392604348.68.0.71211436851.issue12849@psf.upfronthosting.co.za> |
| 2014-02-17 02:32:28 | martin.panter | link | issue12849 messages |
| 2014-02-17 02:32:27 | martin.panter | create | |
|