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 <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Sean Liao <[email protected]> Auto-Submit: Sean Liao <[email protected]>
1 parent 376eb14 commit acbcbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acme/jws.go

+1-1
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)