From bc294ef8964b77af138770a5853832529ad7743d Mon Sep 17 00:00:00 2001 From: Jorge Aguilar Date: Mon, 17 Aug 2020 14:24:02 -0300 Subject: [PATCH] http include the option to use cookies --- src/http.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/http.js b/src/http.js index 786fd895..304d5950 100644 --- a/src/http.js +++ b/src/http.js @@ -155,6 +155,11 @@ class HttpClient { var headers = options.headers; var req; + // check if there is a cookie jar in options + if (this.options.jar) { + options.jar = this.options.jar; + } + //typically clint.js would do addOptions() if security is set in order to get all security options added to options{}. But client.js //addOptions() code runs after this code is trying to contact server to load remote WSDL, hence we have NTLM authentication //object passed in as option to createClient() call for now. Revisit.