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
Comments
same problem |
PR: #1287 |
@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. |
mbargiel
pushed a commit
to mbargiel/axios
that referenced
this issue
Jan 27, 2022
…json to ensure that maxBodyLength option is supported
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Summary
follow-redirects
defaults to amaxBodyLength
of 10mb.axios
does not override this default, even when the config specifies amaxContentLength
parameter greater than 10mb, thus cappingaxios
at a maximum content length of 10mb no matter what is configured, and returning an error that does not make it obvious thatfollow-redirects
is the cause.axios
should set themaxBodyLength
option sent tofollow-redirects
to match themaxContentLength
config property set on theAxiosOptions
object.Context
Status
Pull request: #1287
The text was updated successfully, but these errors were encountered: