-
Notifications
You must be signed in to change notification settings - Fork 227
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
node12: add limit environment variable for raw (application/octet-stream) #245
Comments
So, like this, but for Fine with that. |
fundef1
added a commit
to fundef1/templates
that referenced
this issue
Jan 30, 2021
cfr. openfaas#245 moved rawLimit out of if clause , so it can be applied to RAW_BODY as well. Is more consistent this way.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't seem to set the limit for bodyParser.raw - i.e. when using a Content-Type: application/octet-stream
Expected Behaviour
i was expecting an equivalent to the MAX_JSON_SIZE environment variable.
I'm not a (js) programmer, but I couldn't find a clean way to set the limit for the raw parser.
Current Behaviour
bodyParser.raw defaults to 100kb
Possible Solution
I hacked the node12 template locally and simply added a MAX_RAW_SIZE, but there's probably a cleaner way.
a generic MAX_SIZE might be cleaner though.
The text was updated successfully, but these errors were encountered: