summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2019-11-13 13:36:03 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-11-13 14:15:57 +0100
commit2f3d7f530978bb47583e93b71246018601cccc40 (patch)
tree3ab1a4349b8fdbb52161d8a7050a45f44f189035
parentc1a046d2052fd0c92504c34c126e38dc7b12b84c (diff)
#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.
-rw-r--r--admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp2
1 files changed, 1 insertions, 1 deletions
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) {