woops forgot to add https to rest uri if the node is securre

This commit is contained in:
cloudwithax 2021-11-13 13:10:27 -05:00
parent 2e77a7d7df
commit fc71bdda1f
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class Node:
self._websocket_uri = f"{'wss' if self._secure else 'ws'}://{self._host}:{self._port}"
self._rest_uri = f"http://{self._host}:{self._port}"
self._rest_uri = f"{'https' if self._secure else 'http'}://{self._host}:{self._port}"
self._session = session or aiohttp.ClientSession()
self._websocket: aiohttp.ClientWebSocketResponse = None