#915 Return HTTP 400 error code in og_client_state_process_payload_rest

This patch meets RFC 7235 and returns an HTTP 400 error code when ogAdmServer
recieves a wrong request.
master
Roberto Hueso Gómez 2019-11-13 13:36:03 +01:00 committed by OpenGnSys Support Team
parent 65cc7c17e2
commit 8fa082d4c5
1 changed files with 1 additions and 1 deletions

View File

@ -4961,7 +4961,7 @@ static int og_client_state_process_payload_rest(struct og_client *cli)
json_decref(root);
if (err < 0)
return err;
return og_client_bad_request(cli);
err = og_client_ok(cli, buf_reply);
if (err < 0) {