Skip to content
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

Add an option to disable body parsing #41

Merged
merged 1 commit into from
May 23, 2023

Conversation

itssumitrai
Copy link
Contributor

Currently express-busboy always parses the body into an object. This leads to hanging issues when dealing with ReadableStreams. At these times we don't want the body to get parsed into json object.

This change adds a new option parseBody, its true by default, but when its false, it would not parse the body when the req is json. This fixes our issue when body is a ReadableStream otherwise during reader.read() it always hangs as there is no end event fired after this manipulation by express-busboy.
There are bunch of formatting changes as these files are formatted without prettier 😓

  • Unit test

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

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.

2 participants