mirror of
https://github.com/go-acme/lego.git
synced 2025-07-15 11:24:17 +02:00
@ -101,7 +101,9 @@ func (j *jws) Nonce() (string, error) {
|
|||||||
return nonce, err
|
return nonce, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(j.nonces) == 0 {
|
||||||
|
return "", fmt.Errorf("Can't get nonce")
|
||||||
|
}
|
||||||
nonce, j.nonces = j.nonces[len(j.nonces)-1], j.nonces[:len(j.nonces)-1]
|
nonce, j.nonces = j.nonces[len(j.nonces)-1], j.nonces[:len(j.nonces)-1]
|
||||||
return nonce, nil
|
return nonce, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user