forked from TrueCloudLab/lego
Fix out of range
This commit is contained in:
parent
ca19a90028
commit
232fbbef08
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gopkg.in/square/go-jose.v1"
|
"gopkg.in/square/go-jose.v1"
|
||||||
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type jws struct {
|
type jws struct {
|
||||||
|
@ -100,6 +101,7 @@ func (j *jws) Nonce() (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nonce, err
|
return nonce, err
|
||||||
}
|
}
|
||||||
|
return "", errors.New("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]
|
||||||
|
|
Loading…
Reference in a new issue