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

On a PUT reuqest, Axios resend request when the server response with 302 #1829

Closed
YannikG opened this issue Oct 15, 2018 · 1 comment
Closed

Comments

@YannikG
Copy link

YannikG commented Oct 15, 2018

Summary

When I send a PUT request and the server redirects me, Axios resend the same request again.

I found this "Bug" while asking on Stackoverflow. For the full summary and context, read my question please.

Context

  • axios version: 0.18.0 - 0.19 Beta
  • Environment: any Browser, Windows 10, .NET Core, VueJS
@YannikG YannikG changed the title On a PUT reuqest, Axios resend request when the server redirect the client On a PUT reuqest, Axios resend request when the server response with 302 Oct 15, 2018
@chinesedfan
Copy link
Collaborator

Make sure your server returns a different url in the Location header. If not, it will result in infinite redirections.

@axios axios locked and limited conversation to collaborators May 22, 2020
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

2 participants