Skip to content

Commit

Permalink
Update agent_unifi_controller
Browse files Browse the repository at this point in the history
Removed X-CSRF as bashclub#19
  • Loading branch information
ChristophGoth authored Aug 14, 2024
1 parent 8863966 commit c8204dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents/special/agent_unifi_controller
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ class unifi_controller_api(object):

def check_unifi_os(self):
_response = self.request("GET",url=self.url,allow_redirects=False)
self.is_unifios= _response.status_code == 200 and _response.headers.get("x-csrf-token")
self.is_unifios= _response.status_code == 200

def get_sysinfo(self):
return self.get_data("/stat/sysinfo")
Expand Down

0 comments on commit c8204dc

Please sign in to comment.