From e2d67b08816e2841e1b57fd0e85719b5d8df91e5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 21 Sep 2021 23:51:55 +0200 Subject: [PATCH] fsdfs --- files/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index 9478d13a2..184ca189f 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -85,7 +85,7 @@ db_session = scoped_session(sessionmaker(bind=engine, autoflush=False)) @app.before_request def before_request(): - if request.content_length > 16 * 1024 * 1024: abort(413) + #if request.content_length > 16 * 1024 * 1024: abort(413) if request.method.lower() != "get" and app.config["READ_ONLY"]: return {"error":f"{app.config['SITE_NAME']} is currently in read-only mode."}, 500