Skip to content

Commit

Permalink
minor fix for ntlm request (#1163)
Browse files Browse the repository at this point in the history
* minor fix for ntlm request, bump pachage version

* minor fix for ntlm request, bump package version

* revert package version

* revert package version

Co-authored-by: vision10 <sorinm025@gmail.com>
  • Loading branch information
vision10 and vision10 committed Nov 3, 2021
1 parent 927b3cb commit 0bf40ac
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
35 changes: 16 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
"author": "Vinay Pulim <v@pulim.com>",
"dependencies": {
"axios": "^0.21.1",
"axios-ntlm": "^1.1.7",
"axios-ntlm": "^1.2.0",
"content-type-parser": "^1.0.2",
"debug": "^4.3.2",
"formidable": "^1.2.2",
"get-stream": "^6.0.1",
"httpntlm": "^1.7.7",
"lodash": "^4.17.21",
"sax": ">=0.6",
"strip-bom": "^3.0.0",
Expand Down
8 changes: 5 additions & 3 deletions src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ export class HttpClient implements IHttpClient {
url: curl.href,
method: method,
headers: headers,
validateStatus: null,
transformResponse: (data) => data,
};

if (!exoptions.ntlm) {
options.validateStatus = null;
}
if (exoptions.forceMTOM || attachments.length > 0) {
const start = uuidv4();
let action = null;
Expand Down Expand Up @@ -170,7 +171,8 @@ export class HttpClient implements IHttpClient {
const ntlmReq = NtlmClient({
username: exoptions.username,
password: exoptions.password,
domain: exoptions.domain,
workstation: exoptions.workstation || '',
domain: exoptions.domain || '',
});
req = ntlmReq(options);
} else {
Expand Down

0 comments on commit 0bf40ac

Please sign in to comment.