Skip to content

Commit

Permalink
fix(node): send auth for version, lol
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed Feb 4, 2023
1 parent bb20ad6 commit 29baebf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mafic/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,10 @@ async def _check_version(self) -> None:
if self.__session is None:
self.__session = await self._create_session()

async with self.__session.get(self._rest_uri / "version") as resp:
async with self.__session.get(
self._rest_uri / "version",
headers={"Authorization": self.__password},
) as resp:
# Only the major and minor are needed.
version = await resp.text()

Expand Down Expand Up @@ -850,7 +853,7 @@ async def __request(
)

json = await resp.json(loads=loads)
_log.debug("Received raw data %s", json)
_log.debug("Received raw data %s from %s", json, path)
return json

async def fetch_tracks(
Expand Down

0 comments on commit 29baebf

Please sign in to comment.