Added MAX_CONTENT_LENGTH config key
This commit is contained in:
parent
f8f8463f3a
commit
b1790cca55
4 changed files with 18 additions and 1 deletions
|
|
@ -62,6 +62,10 @@ The following configuration values are used internally by Flask:
|
|||
``LOGGER_NAME`` the name of the logger
|
||||
``SERVER_NAME`` the name of the server. Required for
|
||||
subdomain support (eg: ``'localhost'``)
|
||||
``MAX_CONTENT_LENGTH`` If set to a value in bytes, Flask will
|
||||
reject incoming requests with a
|
||||
content length greater than this by
|
||||
returning a 413 status code.
|
||||
=============================== =========================================
|
||||
|
||||
.. admonition:: More on ``SERVER_NAME``
|
||||
|
|
@ -89,6 +93,8 @@ The following configuration values are used internally by Flask:
|
|||
.. versionadded:: 0.5
|
||||
``SERVER_NAME``
|
||||
|
||||
.. versionadded:: ``MAX_CONTENT_LENGTH``
|
||||
|
||||
Configuring from Files
|
||||
----------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue