SIENTIAPDE-1478
Add headers configuration to API class for improved request handling
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user