Correctly identify as iTop in cURL requests (#652)

* Correctly identify as iTop in cURL requests (with configuration option)
This commit is contained in:
Thomas Casteleyn
2024-11-14 15:18:47 +01:00
committed by GitHub
parent 85f6195a51
commit 1f3780f338
2 changed files with 8 additions and 1 deletions

View File

@@ -1795,6 +1795,13 @@ class Config
'source_of_value' => '',
'show_in_conf_sample' => false,
],
'http.request.user_agent' => [
'type' => 'string',
'description' => 'HTTP request user agent, use this to set a custom agent on external requests.',
'default' => ITOP_APPLICATION.'/'.ITOP_VERSION,
'source_of_value' => '',
'show_in_conf_sample' => false,
]
];
public function IsProperty($sPropCode)