8000 feat: configurable MAX_CONTENT_LENGTH by t510599 · Pull Request #196 · GoogleCloudPlatform/functions-framework-python · GitHub
[go: up one dir, main page]

Skip to content

feat: configurable MAX_CONTENT_LENGTH #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

t510599
Copy link
@t510599 t510599 commented Aug 9, 2022

This PR implements #113.
One can configure the limit by setting the environment variable HTTP_MAX_CONTENT_LENGTH.

What's more, it seems reasonable to make the default value of MAX_CONTENT_LENGTH higher, just like the one in Node.js implementation of functions-framework.
See https://github.com/GoogleCloudPlatform/functions-framework-nodejs/blob/6e7431828a4fbb4aadcd6acab62f97e62bd776ab/src/server.ts#L62-L64

@t510599
Copy link
Author
t510599 commented Aug 26, 2022

Passed following tests:

python3 -m tox -e py38-ubuntu-latest 
python3 -m tox -e lint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0