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.
Created on 2014年07月28日 18:09 by demian.brecht, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue22095.patch | demian.brecht, 2014年07月28日 18:11 | review | ||
| issue22095_1.patch | demian.brecht, 2014年11月28日 22:37 | review | ||
| issue22095_2.patch | demian.brecht, 2014年12月12日 05:20 | review | ||
| Messages (10) | |||
|---|---|---|---|
| msg224175 - (view) | Author: Demian Brecht (demian.brecht) * (Python triager) | Date: 2014年07月28日 18:09 | |
Creating this bug for clarity, but was encountered while investigating 22041 (now set as not a bug). When using set_tunnel with default port, the port value in the host header is set to "None": "send: b'POST [PATH] HTTP/1.1\r\nHost: [HOST]:None\r\nAccept-Encoding: identity\r\nContent-Length: 41\r\nAccept: text/plain\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n[FORM_DATA]'" This issue seems to have been introduced in 3.4 when _tunnel_host and _tunnel_port were introduced to decouple the destination host and port from the proxy host and port. |
|||
| msg224991 - (view) | Author: Demian Brecht (demian.brecht) * (Python triager) | Date: 2014年08月07日 04:42 | |
Bump for review |
|||
| msg231308 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年11月18日 08:49 | |
If call _get_hostport() in set_tunnel() then it should be removed in _tunnel(). As for tests, it would be better do not rely on implementation details. Instead you can monkey-patch the send() method of of HTTPConnection instance and check passed argument. |
|||
| msg231834 - (view) | Author: Demian Brecht (demian.brecht) * (Python triager) | Date: 2014年11月28日 22:37 | |
Thanks Serhiy, new patch addresses your comments. |
|||
| msg232502 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年12月11日 22:39 | |
See also comments on Rietveld (e-mail notification likely fell in spam). |
|||
| msg232508 - (view) | Author: Demian Brecht (demian.brecht) * (Python triager) | Date: 2014年12月12日 05:20 | |
Thanks for the ping Serhiy, indeed the review notification email was sitting in spam. New patch addressing review comments as well as rectifying my own silliness. |
|||
| msg232513 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年12月12日 07:36 | |
New changeset 676d6bcfc031 by Serhiy Storchaka in branch '3.4': Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The port https://hg.python.org/cpython/rev/676d6bcfc031 New changeset ebe2072e5472 by Serhiy Storchaka in branch 'default': Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The port https://hg.python.org/cpython/rev/ebe2072e5472 |
|||
| msg232514 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年12月12日 07:47 | |
Thank you for your contribution Demian. |
|||
| msg244341 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年05月28日 19:38 | |
New changeset 3b6e0720a69d by Serhiy Storchaka in branch '2.7': Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The port https://hg.python.org/cpython/rev/3b6e0720a69d |
|||
| msg244342 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年05月28日 19:44 | |
Backported to 2.7 because this is needed to support proxy with a port in urllib/urllib2 as documented. See issue24311. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:06 | admin | set | github: 66293 |
| 2015年05月28日 19:45:54 | serhiy.storchaka | link | issue24311 superseder |
| 2015年05月28日 19:44:32 | serhiy.storchaka | set | messages:
+ msg244342 versions: + Python 2.7 |
| 2015年05月28日 19:38:00 | python-dev | set | messages: + msg244341 |
| 2014年12月12日 07:47:00 | serhiy.storchaka | set | status: open -> closed resolution: fixed messages: + msg232514 stage: patch review -> resolved |
| 2014年12月12日 07:36:55 | python-dev | set | nosy:
+ python-dev messages: + msg232513 |
| 2014年12月12日 05:32:07 | berker.peksag | set | nosy:
+ berker.peksag |
| 2014年12月12日 05:20:38 | demian.brecht | set | files:
+ issue22095_2.patch messages: + msg232508 |
| 2014年12月11日 22:39:42 | serhiy.storchaka | set | messages: + msg232502 |
| 2014年11月30日 16:51:35 | serhiy.storchaka | set | assignee: serhiy.storchaka |
| 2014年11月28日 22:37:40 | demian.brecht | set | messages: + msg231834 |
| 2014年11月28日 22:37:01 | demian.brecht | set | files: + issue22095_1.patch |
| 2014年11月18日 08:49:04 | serhiy.storchaka | set | nosy:
+ nikratio, serhiy.storchaka, orsenthil messages: + msg231308 stage: patch review |
| 2014年08月07日 04:42:28 | demian.brecht | set | messages: + msg224991 |
| 2014年07月28日 18:11:43 | demian.brecht | set | files:
+ issue22095.patch keywords: + patch |
| 2014年07月28日 18:09:43 | demian.brecht | create | |