aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acme/jws.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/acme/jws.go b/acme/jws.go
index b38828d..6850275 100644
--- a/acme/jws.go
+++ b/acme/jws.go
@@ -92,7 +92,7 @@ func jwsEncodeJSON(claimset interface{}, key crypto.Signer, kid KeyID, nonce, ur
if err != nil {
return nil, err
}
- phead := base64.RawURLEncoding.EncodeToString([]byte(phJSON))
+ phead := base64.RawURLEncoding.EncodeToString(phJSON)
var payload string
if val, ok := claimset.(string); ok {
payload = val