[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

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) {