From 5f566d2e0cb3cb443b640c8c5d9aeccc80d48cbe Mon Sep 17 00:00:00 2001 From: Jan Zak Date: Fri, 13 Nov 2015 20:20:15 +0100 Subject: [PATCH] Add JSON tags to RegistrationResource as used in official client --- acme/messages.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acme/messages.go b/acme/messages.go index 9c21a597..2cc2e583 100644 --- a/acme/messages.go +++ b/acme/messages.go @@ -45,10 +45,10 @@ type Registration struct { // RegistrationResource represents all important informations about a registration // of which the client needs to keep track itself. type RegistrationResource struct { - Body Registration - URI string - NewAuthzURL string - TosURL string + Body Registration `json:"body,omitempty"` + URI string `json:"uri,omitempty"` + NewAuthzURL string `json:"new_authzr_uri,omitempty"` + TosURL string `json:"terms_of_service,omitempty"` } type authorizationResource struct {