Skip to content

Commit

Permalink
Add user-agent header as some servers seems to be blocking requests w…
Browse files Browse the repository at this point in the history
…ith the default one
  • Loading branch information
KaSroka committed Aug 12, 2024
1 parent d64f846 commit cdabce3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toshiba_ac/utils/http_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ async def request_api(
headers = {}
headers["Content-Type"] = "application/json"
headers["Authorization"] = self.access_token_type + " " + self.access_token
headers["User-Agent"] = "curl/7.64.0"

url = self.BASE_URL + path

Expand Down

0 comments on commit cdabce3

Please sign in to comment.