Skip to content
Snippets Groups Projects
Commit a1b83b07 authored by Julien Castiaux's avatar Julien Castiaux
Browse files

[FIX] core: jsonrpc sends 400 for non json request


Send a request to any json-rpc route with a HTTP header
`Content-Type: application/json-rpc` but send non-json or
non-jsonrpc data in the body. The application crashes with
a 500 Internal Server Error instead of a 400 Bad Request one

closes odoo/odoo#122437

Closes: #122048
Signed-off-by: default avatarJulien Castiaux (juc) <juc@odoo.com>
parent f9054dff
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment