[UP] api_manager.py

This commit is contained in:
Evgeny (Krymmy) Momotov 2025-11-12 16:27:45 +03:00
parent c0670b2f18
commit 2400dfecc3

View file

@ -29,6 +29,7 @@ class AsteriskManagerClient:
headers = kwargs.get('headers', {})
if self.token:
headers['Authorization'] = f'Bearer {self.token}'
kwargs['headers'] = headers
async with aiohttp.ClientSession() as session:
async with session.request(method, f"{self.base_url}{endpoint}", **kwargs) as response:
if response.status >= 400: