Skip to content

Commit 34291e8

Browse files
committed
Fix user_agent issue in save/delete (crash)
1 parent f5217fa commit 34291e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyixapi/core/response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def save(self) -> bool:
298298
base=self.endpoint.url,
299299
token=self.api.access_token,
300300
http_session=self.api.http_session,
301-
user_agent=self.user_agent,
301+
user_agent=self.api.user_agent,
302302
proxies=self.api.proxies,
303303
)
304304
if r.patch(updates):
@@ -326,7 +326,7 @@ def delete(self) -> bool:
326326
base=self.endpoint.url,
327327
token=self.api.access_token,
328328
http_session=self.api.http_session,
329-
user_agent=self.user_agent,
329+
user_agent=self.api.user_agent,
330330
proxies=self.api.proxies,
331331
)
332332
return True if r.delete() else False

0 commit comments

Comments
 (0)