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

fix: remove default limit on request body length #145

Merged
merged 1 commit into from
Jun 10, 2021
Merged

Conversation

dpopp07
Copy link
Member

@dpopp07 dpopp07 commented Jun 10, 2021

The axios library sets an arbitrary maximum length for request bodies and
throws an error if this length is exceeded. This has caused some confusion for
users and none of the other core libraries enforce such a limit. Services are
expected to handle request body length themselves. So this commit overrides the
default to be "Infinity", just like we do for response body limits. Users still
have the option to override this limit if they wish.

The `axios` library sets an arbitrary maximum length for request bodies and
throws an error if this length is exceeded. This has caused some confusion for
users and none of the other core libraries enforce such a limit. Services are
expected to handle request body length themselves. So this commit overrides the
default to be "Infinity", just like we do for response body limits. Users still
have the option to override this limit if they wish.
@apaparazzi0329
Copy link
Member

LGTM

Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dpopp07 dpopp07 merged commit abf604a into main Jun 10, 2021
@dpopp07 dpopp07 deleted the dp/max-body-length branch June 10, 2021 20:54
ibm-devx-sdk pushed a commit that referenced this pull request Jun 10, 2021
## [2.11.2](v2.11.1...v2.11.2) (2021-06-10)

### Bug Fixes

* remove default limit on request body length ([#145](#145)) ([abf604a](abf604a))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 2.11.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants