diff --git a/api/elections.go b/api/elections.go index 800e2fad1..0d7f75bfa 100644 --- a/api/elections.go +++ b/api/elections.go @@ -561,11 +561,6 @@ func (*API) computeCidHandler(msg *apirest.APIdata, ctx *httprouter.HTTPContext) if err := json.Unmarshal(msg.Data, req); err != nil { return err } - // check if the file is a valid JSON object - var js json.RawMessage - if err := json.Unmarshal(req.Payload, &js); err != nil { - return ErrCantParsePayloadAsJSON - } data, err := json.Marshal(&File{ CID: "ipfs://" + ipfs.CalculateCIDv1json(req.Payload), })