diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2019-11-13 13:36:03 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-11-13 14:15:57 +0100 |
commit | 8fa082d4c58e77b300e459ea09d73fe0db97ead6 (patch) | |
tree | bf545e49906b69c54641729fe8b1c16298e4d61c /sources/ogAdmServer.cpp | |
parent | 65cc7c17e231ed10b93dce6e0e8e998f66ba0212 (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.
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r-- | sources/ogAdmServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 2a66385..683aab6 100644 --- a/sources/ogAdmServer.cpp +++ b/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) { |