SIENTIAPDE-1478

Add headers configuration to API class for improved request handling
This commit is contained in:
vitor-aignosi
2026-01-27 11:43:46 -03:00
parent 30b1bea846
commit c8b287ecdd

View File

@@ -58,6 +58,12 @@ class API(SientiaMonitoring):
logger=logger, logger=logger,
notification_handler=notification_handler, notification_handler=notification_handler,
metrics_controller=metrics_controller, metrics_controller=metrics_controller,
headers_config={
'Content-Type': 'application/json',
'Accept': 'application/json',
'x-requested-with': 'piwebapistreams',
'User-Agent': 'Aig-Scouter-Agent/1.0',
},
) )
def close(self) -> None: def close(self) -> None: