v1.1.36: CMDB raw_delete uses clean requests (no auth headers)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user