-
-
Notifications
You must be signed in to change notification settings - Fork 37
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: headers cannot be set #12
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@nmsbnmsb1 is attempting to deploy a commit to the TinsFox Studio Team on Vercel. A member of the Team first needs to authorize it. |
My code like this: I believe this Header instance is used for setting headers, so I used its API to configure them. When I used the destructuring operator, If this wasn’t your intention, please ignore my request. |
Can you try this code snippet?
Maybe you should use set instead of append. |
@nmsbnmsb1 You are right, but I am working on other new features now. I will merge this PR later. Thanks |
Problem: When using options.headers = { ...header }, the headers were not correctly applied to the request.
Solution: I replaced options.headers = { ...header } with options.headers = header. By assigning the headers directly, the issue is resolved, and the HTTP headers are now set correctly.