mirror of
https://github.com/bashclub/check-unifi-controller.git
synced 2025-01-26 07:29:58 +01:00
Update agent_unifi_controller
Removed X-CSRF as https://github.com/bashclub/check-unifi-controller/issues/19
This commit is contained in:
parent
8863966ce7
commit
c8204dce28
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user