mirror of https://git.48k.eu/ogserver
#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
parent
65cc7c17e2
commit
8fa082d4c5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue