diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-02-04 13:29:18 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-02-04 13:29:24 +0100 |
commit | 0a09c5b09c4013b79648ab091495c767ef06c315 (patch) | |
tree | e3d204dfdffb516d615245f1c71d707873cd399a | |
parent | 85d092864cddb8390c13915ead3b24b48d2b2306 (diff) |
#1022 increase maximum API REST request size
Software inventory generates a request larger that 64 Kbytes.
Rise the maximum API REST request size to 128 Kbytes.
-rw-r--r-- | src/rest.h | 2 | ||||
-rw-r--r-- | tests/units/test_0014_big_request.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ enum og_cmd_type { OG_CMD_MAX }; -#define OG_MSG_REQUEST_MAXLEN 65536 +#define OG_MSG_REQUEST_MAXLEN 131072 struct og_client { struct list_head list; diff --git a/tests/units/test_0014_big_request.py b/tests/units/test_0014_big_request.py index 48f0cb2..2d9d861 100644 --- a/tests/units/test_0014_big_request.py +++ b/tests/units/test_0014_big_request.py @@ -1,7 +1,7 @@ import requests import unittest -MAX_REQ_SIZE = 65536 +MAX_REQ_SIZE = 131072 class TestBigRequest(unittest.TestCase): |