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

fix: use normalized ofetch headers #192

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

manchenkoff
Copy link
Owner

@manchenkoff manchenkoff commented Oct 2, 2024

Is your PR related to a specific issue/feature? Please describe and mention issues.

After ofetch 1.4.0 release that includes unjs/ofetch#436, nuxt-auth-sanctum interceptors stopped working properly due to the usage of HeadersInit instead of Headers type.

This PR introduces a new helper that appends new headers to the existing Header collection. Should fix issues in #188 and #191.

@manchenkoff manchenkoff self-assigned this Oct 2, 2024
@manchenkoff manchenkoff merged commit 77ca461 into main Oct 2, 2024
4 checks passed
@manchenkoff manchenkoff deleted the fix-ofetch-headers-normalization branch October 2, 2024 12:15
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

Successfully merging this pull request may close these issues.

1 participant