[ipcamera] Fix Hikvision cameras stay offline when a 401 reply is given with no www-authenticate header (#15613)
Signed-off-by: Stefan Triller <github@stefantriller.de>
This commit is contained in:
parent
79dc3c9312
commit
e4c4d03167
|
@ -160,8 +160,8 @@ public class MyNettyAuthHandler extends ChannelDuplexHandler {
|
||||||
if (!authenticate.isEmpty()) {
|
if (!authenticate.isEmpty()) {
|
||||||
processAuth(authenticate, httpMethod, httpUrl, true);
|
processAuth(authenticate, httpMethod, httpUrl, true);
|
||||||
} else {
|
} else {
|
||||||
ipCameraHandler.cameraConfigError(
|
ipCameraHandler.cameraCommunicationError(
|
||||||
"Camera gave no WWW-Authenticate: Your login details must be wrong.");
|
"Camera gave no WWW-Authenticate: Your login details might be wrong. Trying to reconnect");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (response.status().code() != 200) {
|
} else if (response.status().code() != 200) {
|
||||||
|
|
Loading…
Reference in New Issue