Skip to content

Commit 00b33c3

Browse files
committed
Fix kwargs definition in sync version
1 parent 30789fc commit 00b33c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

httpcore/_sync/http_proxy.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ def handle_request(self, request: Request) -> Response:
307307
alpn_protocols = ["http/1.1", "h2"] if self._http2 else ["http/1.1"]
308308
ssl_context.set_alpn_protocols(alpn_protocols)
309309

310+
kwargs = {
311+
"ssl_context": ssl_context,
312+
"server_hostname": self._remote_origin.host.decode("ascii"),
313+
"timeout": timeout,
314+
}
310315
try:
311316
with Trace("start_tls", logger, request, kwargs) as trace:
312317
stream = stream.start_tls(**kwargs)

0 commit comments

Comments
 (0)