Skip to content

Commit

Permalink
added server_hostname param to ws_connect method (#7942)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamir1400 authored Dec 5, 2023
1 parent 114174f commit 0b71e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/7941.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added ``server_hostname`` parameter to ``ws_connect``.
4 changes: 4 additions & 0 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ def ws_connect(
proxy: Optional[StrOrURL] = None,
proxy_auth: Optional[BasicAuth] = None,
ssl: Union[SSLContext, Literal[False], None, Fingerprint] = None,
server_hostname: Optional[str] = None,
proxy_headers: Optional[LooseHeaders] = None,
compress: int = 0,
max_msg_size: int = 4 * 1024 * 1024,
Expand All @@ -711,6 +712,7 @@ def ws_connect(
proxy=proxy,
proxy_auth=proxy_auth,
ssl=ssl,
server_hostname=server_hostname,
proxy_headers=proxy_headers,
compress=compress,
max_msg_size=max_msg_size,
Expand All @@ -735,6 +737,7 @@ async def _ws_connect(
proxy: Optional[StrOrURL] = None,
proxy_auth: Optional[BasicAuth] = None,
ssl: Union[SSLContext, Literal[False], None, Fingerprint] = None,
server_hostname: Optional[str] = None,
proxy_headers: Optional[LooseHeaders] = None,
compress: int = 0,
max_msg_size: int = 4 * 1024 * 1024,
Expand Down Expand Up @@ -806,6 +809,7 @@ async def _ws_connect(
proxy=proxy,
proxy_auth=proxy_auth,
ssl=ssl,
server_hostname=server_hostname,
proxy_headers=proxy_headers,
)

Expand Down

0 comments on commit 0b71e1c

Please sign in to comment.