Skip to content

Commit 726e930

Browse files
authored
Add User-Agent to the request headers (#152)
1 parent 82c4fac commit 726e930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ariston/ariston_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def __request(
442442
is_retry: bool = False,
443443
) -> Optional[dict[str, Any]]:
444444
"""Request with requests"""
445-
headers = {"ar.authToken": self.__token}
445+
headers = {"User-Agent": "RestSharp/106.11.7.0", "ar.authToken": self.__token}
446446

447447
_LOGGER.debug(
448448
"Request method %s, path: %s, params: %s",
@@ -872,7 +872,7 @@ async def __async_request(
872872
is_retry: bool = False,
873873
) -> Optional[dict[str, Any]]:
874874
"""Async request with aiohttp"""
875-
headers = {"ar.authToken": self.__token}
875+
headers = {"User-Agent": "RestSharp/106.11.7.0", "ar.authToken": self.__token}
876876

877877
_LOGGER.debug(
878878
"Request method %s, path: %s, params: %s",

0 commit comments

Comments
 (0)