From 0e80c76cb564771465f61825e694227dcc3be312 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 6 Jan 2022 13:07:53 +0000 Subject: [PATCH] Gateway: Set bottle request limit to 1MiB --- src/eddn/Gateway.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eddn/Gateway.py b/src/eddn/Gateway.py index 63d10d7..028e2f7 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -21,7 +21,9 @@ from eddn.core.Validator import Validator, ValidationSeverity from gevent import monkey monkey.patch_all() +import bottle from bottle import Bottle, run, request, response, get, post +bottle.BaseRequest.MEMFILE_MAX = 1024 * 1024 # 1MiB, default is/was 100KiB app = Bottle() logger = logging.getLogger(__name__)