Add file upload test for http request node

This commit is contained in:
Nick O'Leary
2019-03-06 21:21:35 +00:00
parent fe0d0f08e4
commit 3c013b3533
2 changed files with 62 additions and 2 deletions

View File

@@ -186,8 +186,8 @@ module.exports = function(RED) {
}
} else if (this.authType === "digest") {
if (this.credentials.user) {
// The first request will be send without auth information. Based on the 401 response, the library can determine
// which auth type is required by the server. Then the request is resubmitted the with the appropriate auth header.
// The first request will be sent without auth information. Based on the 401 response, the library can determine
// which auth type is required by the server. Then the request is resubmitted with the appropriate auth header.
opts.auth = {
user: this.credentials.user,
pass: this.credentials.password || "",