Temporarily change the MAX_CONTENT_LENGTH #5142
Unanswered
BobSquarePants
asked this question in
Q&A
Replies: 1 comment
-
I made it work :) I didn't investigate yet to see if the change happen to all the worker or only one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To all the users of Flask,
For an endpoint I would like to change the
.config['MAX_CONTENT_LENGTH']
temporarily and then revert back to his default. is.config['MAX_CONTENT_LENGTH'] = None
is enough ?BTW I'm using gunicorn with multiple workers. So if I change MAX_CONTENT_LENGTH during runtime. is that will change all the workers or only the one catching the request ?
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions