Skip to content

Wrong content-type on retry for POST #285

@rlsystems

Description

@rlsystems

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions