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

headers are overwritten #444

Closed
jakubm95 opened this issue Nov 30, 2020 · 1 comment
Closed

headers are overwritten #444

jakubm95 opened this issue Nov 30, 2020 · 1 comment

Comments

@jakubm95
Copy link

jakubm95 commented Nov 30, 2020

Hello,
I've updated to the latest version and this
{ headers: { Accept: 'application/json' } },
removes the globally added headers

const result = await $axios.get(
        `${env.api}/products/${route.params.slug}`,
        { headers: { Accept: 'application/json' } },
        {
          params: {
            showOther: true,
          },
        },
      );
@pi0
Copy link
Member

pi0 commented Dec 14, 2020

Hi @jakubm95 issue solved by v5.12.4

@pi0 pi0 closed this as completed Dec 14, 2020
This was referenced Sep 14, 2024
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

2 participants