Return always json struct (#1220)
This commit is contained in:
parent
ac8da3c0f0
commit
f3880f8fe1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue