1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-25 11:02:56 +02:00

Save accounts using indented JSON

This commit is contained in:
xenolf 2015-06-08 23:52:41 +02:00
parent ea47f1137a
commit 14627c9d51

View File

@ -86,7 +86,7 @@ func (a *Account) GetRegistration() *acme.RegistrationResource {
// Save the account to disk
func (a *Account) Save() error {
jsonBytes, err := json.Marshal(a)
jsonBytes, err := json.MarshalIndent(a, "", "\t")
if err != nil {
return err
}