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

Axios should set maxBodyLength on follow-redirects to match maxContentLength #1286

Closed
mividtim opened this issue Jan 11, 2018 · 3 comments
Closed

Comments

@mividtim
Copy link

mividtim commented Jan 11, 2018

Summary

follow-redirects defaults to a maxBodyLength of 10mb. axios does not override this default, even when the config specifies a maxContentLength parameter greater than 10mb, thus capping axios at a maximum content length of 10mb no matter what is configured, and returning an error that does not make it obvious that follow-redirects is the cause.

axios should set the maxBodyLength option sent to follow-redirects to match the maxContentLength config property set on the AxiosOptions object.

Context

  • axios version: v0.17.1
  • Environment: Electron v1.4.3 or Node v6.5.0 with XHR polyfill, macOS v10.13.2

Status

Pull request: #1287

@chenchengwork
Copy link

same problem

@mividtim
Copy link
Author

PR: #1287

@mividtim mividtim mentioned this issue Feb 8, 2018
48 tasks
emilyemorehouse added a commit that referenced this issue Feb 11, 2018
Companion for #1286 and #1287 - also updating follow-redirects version in package.json
@mividtim
Copy link
Author

@chenchengwork The PR was merged, in case you care enough to use the Github version of axios - or, I guess, wait for the next release.

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

No branches or pull requests

3 participants