Skip to content

Commit 04d8522

Browse files
committed
Digest authentication support is fully working now #18
1 parent 10d13b2 commit 04d8522

File tree

3 files changed

+41
-31
lines changed

3 files changed

+41
-31
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function HTTP_SWITCH(log, config) {
107107
urlObject.auth.username = config.auth.username;
108108
urlObject.auth.password = config.auth.password;
109109

110-
if (config.auth.sendImmediately)
110+
if (typeof config.auth.sendImmediately === "boolean")
111111
urlObject.auth.sendImmediately = config.auth.sendImmediately;
112112
});
113113
}
@@ -116,15 +116,15 @@ function HTTP_SWITCH(log, config) {
116116
urlObject.auth.username = config.auth.username;
117117
urlObject.auth.password = config.auth.password;
118118

119-
if (config.auth.sendImmediately)
119+
if (typeof config.auth.sendImmediately === "boolean")
120120
urlObject.auth.sendImmediately = config.auth.sendImmediately;
121121
});
122122
}
123123
if (this.status) {
124124
this.status.auth.username = config.auth.username;
125125
this.status.auth.password = config.auth.password;
126126

127-
if (config.auth.sendImmediately)
127+
if (typeof config.auth.sendImmediately === "boolean")
128128
this.status.auth.sendImmediately = config.auth.sendImmediately;
129129
}
130130
}

package-lock.json

+37-27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"homebridge": ">=0.4.8"
2222
},
2323
"dependencies": {
24-
"homebridge-http-base": "1.1.1"
24+
"homebridge-http-base": "1.1.3"
2525
},
2626
"devDependencies": {
2727
"hap-nodejs": "^0.4.47"

0 commit comments

Comments
 (0)