Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion python-ecosys/aiohttp/aiohttp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def ws_connect(self, url, ssl=None):
return _WSRequestContextManager(self, self._ws_connect(url, ssl=ssl))

async def _ws_connect(self, url, ssl=None):
ws_client = WebSocketClient(None)
ws_client = WebSocketClient(self._base_headers.copy())
await ws_client.connect(url, ssl=ssl, handshake_request=self.request_raw)
self._reader = ws_client.reader
return ClientWebSocketResponse(ws_client)
2 changes: 1 addition & 1 deletion python-ecosys/aiohttp/aiohttp/aiohttp_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _encode_websocket_frame(cls, opcode, payload):
return frame + payload

async def handshake(self, uri, ssl, req):
headers = {}
headers = self.params
_http_proto = "http" if uri.protocol != "wss" else "https"
url = f"{_http_proto}://{uri.hostname}:{uri.port}{uri.path or '/'}"
key = binascii.b2a_base64(bytes(random.getrandbits(8) for _ in range(16)))[:-1]
Expand Down
2 changes: 1 addition & 1 deletion python-ecosys/aiohttp/manifest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
metadata(
description="HTTP client module for MicroPython asyncio module",
version="0.0.4",
version="0.0.5",
pypi="aiohttp",
)

Expand Down
Loading