Skip to content

Commit c29ddae

Browse files
🩹 refactor: added "User-Agent" to request headers
1 parent 3ac0134 commit c29ddae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

squarecloud/http/http_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ async def request(self, route: Router, **kwargs) -> Response | bytes:
126126
Returns:
127127
RawResponseData
128128
"""
129-
headers = {'Authorization': self.api_key}
129+
headers = {
130+
'Authorization': self.api_key,
131+
'User-Agent': 'squarecloud-api/3.2.1',
132+
}
130133
extra_error_kwargs: dict[str, Any] = {}
131134

132135
if kwargs.get('custom_domain'):

0 commit comments

Comments
 (0)