[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:
Stefan Triller 2023-12-17 06:58:34 +01:00 committed by GitHub
parent 79dc3c9312
commit e4c4d03167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,8 @@ public class MyNettyAuthHandler extends ChannelDuplexHandler {
if (!authenticate.isEmpty()) {
processAuth(authenticate, httpMethod, httpUrl, true);
} else {
ipCameraHandler.cameraConfigError(
"Camera gave no WWW-Authenticate: Your login details must be wrong.");
ipCameraHandler.cameraCommunicationError(
"Camera gave no WWW-Authenticate: Your login details might be wrong. Trying to reconnect");
}
}
} else if (response.status().code() != 200) {