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

Wrong content-type on retry for POST #285

Open
rlsystems opened this issue Jun 13, 2024 · 0 comments
Open

Wrong content-type on retry for POST #285

rlsystems opened this issue Jun 13, 2024 · 0 comments

Comments

@rlsystems
Copy link

I'm having this issue in two separate projects, Vue and React:

React:
On a POST retry attempt, it will fail and get 415 unsupported media type because the header for content-type is being set to plaintext; it should be 'application/json'. However, a POST with form data like when I upload a file, works; the retry is set correctly to 'multipart/form-data'.

Vue:
Same issue with Vue, a 415 unsupported media error response, except with Vue the content-type header is being set to 'multipart/form-data' when it should be 'application/json'. Uploading a form data POST works ok here too.

Has anyone else had this issue?

Axios 1.7.2
Auth-Refresh 3.3.6

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

No branches or pull requests

1 participant