Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
bpo-22708: Fix http protocol version in CONNECT method, support IDN#742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Original author of this patch demianbrecht@gmail.com
brettcannon commentedMar 24, 2017
FYI for any other core dev, Demian Brecht has signed the CLA. |
berkerpeksag left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please also include the NEWS entry in theoriginal patch and append "Patch by Demian Brecht.".
| deftest_connect_with_tunnel_idna(self): | ||
| dest='\u03b4\u03c0\u03b8.gr' | ||
| expected='CONNECT %s:%d HTTP/1.1\r\n'.encode('ascii')% ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Is there a reason to not useb'CONNECT %s:%d HTTP/1.1\r\n' instead? We already know that "HTTP/1.1",dest.encode('idna') andclient.HTTP_PORT don't contain any non-ASCII chars so there is no need to encode it ASCII.
berkerpeksag commentedApr 15, 2017
And please rebase your branch so we can run the tests on AppVeyor. |
| self.assertNotIn(b'Host: destination.com:None',self.conn.sock.data) | ||
| self.assertIn(b'Host: destination.com',self.conn.sock.data) | ||
| # This test should be removed when CONNECT gets the HTTP/1.1 blessing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This comment is now redundant and can be removed, but I don't see a reason to remove the test itself.
brettcannon commentedFeb 21, 2018
To try and help move older pull requests forward, we are going through and backfilling 'awaiting' labels on pull requests that are lacking the label. Based on the current reviews, the best we can tell in an automated fashion is that a core developer requested changes to be made to this pull request. If/when the requested changes have been made, please leave a comment that says, |
berkerpeksag commentedJul 17, 2018
Superseded by PR#8305. |
Original author of this patchdemianbrecht@gmail.com
HTTP/1.0 not supported CONNECT method, fix http version.
Support for IDN.
https://bugs.python.org/issue22708