Return always json struct (#1220)

This commit is contained in:
Andrea Maria Piana 2018-09-28 13:53:36 +02:00 committed by Pedro Pombeiro
parent ac8da3c0f0
commit f3880f8fe1
1 changed files with 8 additions and 1 deletions

View File

@ -106,7 +106,14 @@ func VerifyGroupMembershipSignatures(signaturePairsStr *C.char) *C.char {
return makeJSONResponse(err)
}
return nil
data, err := json.Marshal(struct {
Success bool `json:"success"`
}{Success: true})
if err != nil {
return makeJSONResponse(err)
}
return C.CString(string(data))
}
// Sign signs a string containing group membership information