Skip to content

Commit

Permalink
fix: 418 issue, fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
geertmeersman committed Aug 24, 2023
1 parent c9ea7a3 commit ca7bcbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/youfone/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def request(
headers = self._headers
headers.update(
{
"referer": f"https://my.youfone.{self.country}/login",
"Referer": f"https://my.youfone.{self.country}/login",
"Origin": f"https://my.youfone.{self.country}",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
}
)
if self.securitykey is not None:
Expand Down

0 comments on commit ca7bcbd

Please sign in to comment.