mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-05 13:13:10 -06:00
Return M_NOT_JSON on read error
This commit is contained in:
parent
e42bab8c1d
commit
de9f68f60f
|
|
@ -531,7 +531,7 @@ func Register(
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusBadRequest,
|
Code: http.StatusBadRequest,
|
||||||
JSON: jsonerror.BadJSON("Unable to read request body"),
|
JSON: jsonerror.NotJSON("Unable to read request body"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue