Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
vo-va wants to merge1 commit intopython:masterfromvo-va:fix-issue-22708

Conversation

@vo-va
Copy link

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

svenhaag reacted with thumbs up emoji
Original author of this patch demianbrecht@gmail.com
@brettcannon
Copy link
Member

FYI for any other core dev, Demian Brecht has signed the CLA.

Copy link
Member

@berkerpeksagberkerpeksag left a 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')% (
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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,I have made the requested changes; please review again. That will trigger a bot to flag this pull request as ready for a follow-up review.

@berkerpeksag
Copy link
Member

Superseded by PR#8305.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@berkerpeksagberkerpeksagberkerpeksag requested changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@vo-va@brettcannon@berkerpeksag@Mariatta@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp