Skip to content

Commit 3270492

Browse files
committed
Address comments.
1 parent 6afa7c3 commit 3270492

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

acme/acme.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func (c *Client) UpdateReg(ctx context.Context, acct *Account) (*Account, error)
309309
// AccountKeyRollover attempts to transition a client's account key to a new key.
310310
// On success client's Key is updated which is not concurrency safe.
311311
// On failure an error will be returned.
312-
// If the error is already registered with the ACME provider the following is true:
312+
// The new key is already registered with the ACME provider if the following is true:
313313
// - error is of type acme.Error
314314
// - StatusCode should be 409 (Conflict)
315315
// - Location header will have the KID of the associated account

acme/jws.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ type jsonWebSignature struct {
5252
// The claimset is marshalled using json.Marshal unless it is a string.
5353
// In which case it is inserted directly into the message.
5454
//
55-
// If kid is non-empty, its quoted value is inserted in the protected head
55+
// If kid is non-empty, its quoted value is inserted in the protected header
5656
// as "kid" field value. Otherwise, JWK is computed using jwkEncode and inserted
5757
// as "jwk" field value. The "jwk" and "kid" fields are mutually exclusive.
5858
//
59-
// If nonce is non-empty, its quoted value is inserted in the protected head.
59+
// If nonce is non-empty, its quoted value is inserted in the protected header.
6060
//
6161
// See https://tools.ietf.org/html/rfc7515#section-7.
6262
func jwsEncodeJSON(claimset interface{}, key crypto.Signer, kid KeyID, nonce, url string) ([]byte, error) {

0 commit comments

Comments
 (0)