修复 设备注册时报错 #799

pull/810/head
648540858 2023-03-31 09:10:16 +08:00
parent 056162d742
commit 053cd130aa
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public class DigestServerAuthenticationHelper {
*/ */
public boolean doAuthenticatePlainTextPassword(Request request, String pass) { public boolean doAuthenticatePlainTextPassword(Request request, String pass) {
AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME); AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME);
if ( authHeader == null ) { if ( authHeader == null || authHeader.getRealm() == null) {
return false; return false;
} }
String realm = authHeader.getRealm().trim(); String realm = authHeader.getRealm().trim();