Skip to content

Commit d34f7bb

Browse files
go-gollGoll.Wang
andauthored
fix: add omitempty to Account.Status field (#48)
Some strict ACME CAs reject requests that include an empty status field. Adding omitempty ensures the status field is omitted when empty, which aligns with the spec note that clients need NOT set this field when creating a new account. Co-authored-by: Goll.Wang <goll.wang@trustasia.com>
1 parent dfd3205 commit d34f7bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

acme/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Account struct {
3838
// initiated deactivation. See Section 7.1.6.
3939
//
4040
// The client need NOT set this field when creating a new account.
41-
Status string `json:"status"`
41+
Status string `json:"status,omitempty"`
4242

4343
// contact (optional, array of string): An array of URLs that the
4444
// server can use to contact the client for issues related to this

0 commit comments

Comments
 (0)