v1.1.36: CMDB raw_delete uses clean requests (no auth headers)

This commit is contained in:
2026-07-30 07:14:25 +04:00
parent b1ec156fc8
commit 9c062a225e
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -120,9 +120,10 @@ class HttpClient:
def raw_delete(self, url):
"""DELETE-запрос к произвольному URL (CMDB API).
Использует отдельную сессию БЕЗ auth-заголовков.
Возвращает кортеж (ok: bool, status_code: int)."""
try:
r = self._session.delete(url, timeout=10)
r = requests.delete(url, timeout=10)
return r.ok, r.status_code
except Exception as e:
return False, str(e)