fix MAX_CONTENT_LENGTH calc to match description

description presents value as megabytes, so it should be x1024 instead of x1000
This commit is contained in:
yed podtrzitko 2022-07-28 21:24:23 +09:00 committed by GitHub
parent 095651be9e
commit b5508f6e4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ config key::
from flask import Flask, Request
app = Flask(__name__)
app.config['MAX_CONTENT_LENGTH'] = 16 * 1000 * 1000
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
The code above will limit the maximum allowed payload to 16 megabytes.
If a larger file is transmitted, Flask will raise a