From 2f3d7f530978bb47583e93b71246018601cccc40 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Wed, 13 Nov 2019 13:36:03 +0100 Subject: #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. --- admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin') diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp index 2a663856..683aab6d 100644 --- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp +++ b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp @@ -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) { -- cgit v1.2.3-18-g5258