Skip to content

Commit acbcbef

Browse files
mateusz834gopherbot
authored andcommitted
acme: remove unnecessary []byte conversion
Change-Id: Iddbe6bcb7a5487678c48df65903571b4625fc9f9 GitHub-Last-Rev: 2552a8d GitHub-Pull-Request: #243 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/456438 Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Sean Liao <sean@liao.dev> Auto-Submit: Sean Liao <sean@liao.dev>
1 parent 376eb14 commit acbcbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acme/jws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func jwsEncodeJSON(claimset interface{}, key crypto.Signer, kid KeyID, nonce, ur
9292
if err != nil {
9393
return nil, err
9494
}
95-
phead := base64.RawURLEncoding.EncodeToString([]byte(phJSON))
95+
phead := base64.RawURLEncoding.EncodeToString(phJSON)
9696
var payload string
9797
if val, ok := claimset.(string); ok {
9898
payload = val

0 commit comments

Comments
 (0)