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

Appearance settings

gh-66897: Upgrade HTTP CONNECT to protocol HTTP/1.1 #8305

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into fix-bpo-22708
  • Loading branch information
handlerbot authored Oct 8, 2022
commit f370042ac08868215c8f9c6eaeb52a5d092c2c44
4 changes: 2 additions & 2 deletions 4 Lib/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,10 +934,10 @@ def set_debuglevel(self, level):
self.debuglevel = level

def _tunnel(self):
connect_bytes = b"CONNECT %s:%d %s\r\n" % (
connect = b"CONNECT %s:%d %s\r\n" % (
self._tunnel_host.encode("idna"), self._tunnel_port,
self._http_vsn_str.encode("ascii"))
self.send(connect_bytes)
headers = [connect]
for header, value in self._tunnel_headers.items():
headers.append(f"{header}: {value}\r\n".encode("latin-1"))
headers.append(b"\r\n")
Expand Down
1 change: 1 addition & 0 deletions 1 Lib/test/test_httplib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import copy
import enum
import errno
from http import client, HTTPStatus
import io
Expand Down
1 change: 1 addition & 0 deletions 1 Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ Mark Hammond
Harald Hanche-Olsen
Manus Hand
Michael Handler
Andreas Hangauer
Milton L. Hankins
Carl Bordum Hansen
Stephen Hansen
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.