From 711dd865761e048ad0b48d4713a545b280d36b18 Mon Sep 17 00:00:00 2001 From: Ekaterina Fedorova Date: Thu, 21 Nov 2013 19:21:19 +0400 Subject: [PATCH] Limit size of uploading data Change-Id: I023d28c1f2af93f7325d9afdeb24e8855e575fef --- muranorepository/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/muranorepository/main.py b/muranorepository/main.py index 61073e2..244c947 100644 --- a/muranorepository/main.py +++ b/muranorepository/main.py @@ -23,6 +23,7 @@ def make_app(kwargs): """ app = flask.Flask(__name__) + app.config['MAX_CONTENT_LENGTH'] = 5 * 1024 * 1024 app.register_blueprint(v1_api, url_prefix='/v1') app.wsgi_app = auth_token.filter_factory( app.config, **kwargs)(app.wsgi_app)