Skip to content

Commit

Permalink
workaround to avoid error 250
Browse files Browse the repository at this point in the history
  • Loading branch information
Giga77 committed Apr 2, 2024
1 parent b4a97ff commit 4bfe4a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/ecole_directe/ecole_directe_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ def get_headers(token):
"Sec-fetch-mode": "cors",
"Sec-fetch-site": "same-site",
"Sec-GPC": "1",
"User-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0",
"User-agent": "EDMOBILE",
# "User-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0",
}
if token is not None:
headers["X-Token"] = token
Expand Down

0 comments on commit 4bfe4a7

Please sign in to comment.