From 93ea374977aaf0bdf1584311f3c06202e1e83633 Mon Sep 17 00:00:00 2001 From: Arnold Hendriks Date: Mon, 26 Dec 2022 00:23:39 +0100 Subject: [PATCH] honor httpAgent/httpsAgent when setting ntlm flag --- src/http.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index ba5369815..f9968c162 100644 --- a/src/http.ts +++ b/src/http.ts @@ -193,7 +193,9 @@ export class HttpClient implements IHttpClient { password: exoptions.password, workstation: exoptions.workstation || '', domain: exoptions.domain || '', - }); + }, { httpAgent: exoptions.httpAgent, + httpsAgent: exoptions.httpsAgent + }); req = ntlmReq(options); } else { if (this.options.parseReponseAttachments) {