Added ability to configure HTTP proxy (v1.24)

This commit is contained in:
Mark Oudsen
2021-03-12 16:33:44 +01:00
parent 78061964c4
commit fb51354649
4 changed files with 12 additions and 4 deletions

View File

@@ -7,7 +7,10 @@ try {
result = { tags: {} };
// Set HTTP proxy if required
if (typeof params.HTTPProxy === 'string' && params.HTTPProxy.trim() !== '') { req.setProxy(params.HTTPProxy); }
if (typeof params.HTTPProxy === 'string' && params.HTTPProxy.trim() !== '') {
req.setProxy(params.HTTPProxy);
fields.HTTPProxy = params.HTTPProxy;
}
// Declare output type
req.AddHeader('Content-Type: application/json');