Skip to content

Commit

Permalink
add missing user-agent header even for basic auth
Browse files Browse the repository at this point in the history
wasnt neccesarry
some ppl i talked to are saying it was always necessary, idk man
  • Loading branch information
CNDRD committed Sep 19, 2023
1 parent ccd2231 commit 256e729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion siegeapi/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ async def connect(self, _new: bool = False) -> None:

session = await self.get_session()
headers = {
"User-Agent": "UbiServices_SDK_2020.Release.58_PC64_ansi_static",
"Content-Type": "application/json; charset=UTF-8",
"Ubi-AppId": "39baebad-39e5-4552-8c25-2c9b919064e2",
"Authorization": "Basic " + self.token
Expand All @@ -178,7 +179,6 @@ async def connect(self, _new: bool = False) -> None:
if _new:
headers["Ubi-AppId"] = self.appid
headers["Authorization"] = "Ubi_v1 t=" + self.key
headers["User-Agent"] = "UbiServices_SDK_2020.Release.58_PC64_ansi_static"

resp = await session.post(
url="https://public-ubiservices.ubi.com/v3/profiles/sessions",
Expand Down

0 comments on commit 256e729

Please sign in to comment.