From 804565139f41a8db54df28decc1b967e4003f8bd Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 10 Aug 2018 21:33:51 +0200 Subject: [PATCH] Return existing account on newAccount with key in use (#156) --- wfe/wfe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wfe/wfe.go b/wfe/wfe.go index 666311a1..efcc98f3 100644 --- a/wfe/wfe.go +++ b/wfe/wfe.go @@ -747,7 +747,7 @@ func (wfe *WebFrontEndImpl) NewAccount( // the account and a 200 OK response acctURL := wfe.relativeEndpoint(request, fmt.Sprintf("%s%s", acctPath, existingAcct.ID)) response.Header().Set("Location", acctURL) - _ = wfe.writeJsonResponse(response, http.StatusOK, nil) + _ = wfe.writeJsonResponse(response, http.StatusOK, existingAcct) return } else if existingAcct == nil && newAcctReq.OnlyReturnExisting { // If there *isn't* an existing account and the created account request