From c8204dce2823cda49874740433c66b58de5ae748 Mon Sep 17 00:00:00 2001 From: Chris_ <38036320+ChristophGoth@users.noreply.github.com> Date: Wed, 14 Aug 2024 08:51:14 +0200 Subject: [PATCH] Update agent_unifi_controller Removed X-CSRF as https://github.com/bashclub/check-unifi-controller/issues/19 --- agents/special/agent_unifi_controller | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/special/agent_unifi_controller b/agents/special/agent_unifi_controller index 8f2ec88..69c96ae 100755 --- a/agents/special/agent_unifi_controller +++ b/agents/special/agent_unifi_controller @@ -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")