Return M_NOT_JSON on read error

This commit is contained in:
Neil Alexander 2022-03-28 10:20:26 +01:00
parent e42bab8c1d
commit de9f68f60f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -531,7 +531,7 @@ func Register(
if err != nil {
return util.JSONResponse{
Code: http.StatusBadRequest,
JSON: jsonerror.BadJSON("Unable to read request body"),
JSON: jsonerror.NotJSON("Unable to read request body"),
}
}