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
}