restore API compatibility

This commit is contained in:
aler9
2023-07-31 10:00:40 +02:00
committed by Alessandro Ros
parent 8b8b52e689
commit 8ef42a27e9
6 changed files with 20 additions and 12 deletions

View File

@@ -64,10 +64,7 @@ func NewValidator(user string, pass string, methods []headers.AuthMethod) *Valid
methods = []headers.AuthMethod{headers.AuthBasic}
}
nonce, err := GenerateNonce()
if err != nil {
panic(err)
}
nonce := GenerateNonce()
return &Validator{
user: user,