这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Angelmmiguel
Copy link
Contributor

Properly manage Headers instances by reusing them when a Response receives it. Before, a Headers object was causing a { headers: { headers: {} } object, which was wrong. I also took the opportunity to improve the Headers parsing by only allowing valid types (Object or Headers), and valid header values (string).

It fixes #233

@Angelmmiguel Angelmmiguel added 🐛 bug Something isn't working 🔨 sdks Issues related to language SDKs labels Oct 16, 2023
@Angelmmiguel Angelmmiguel added this to the 1.7.0 milestone Oct 16, 2023
@Angelmmiguel Angelmmiguel requested a review from a team October 16, 2023 09:19
@Angelmmiguel Angelmmiguel self-assigned this Oct 16, 2023
Copy link
Contributor

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix :)

@Angelmmiguel Angelmmiguel merged commit 983540f into main Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working cla-not-required 🔨 sdks Issues related to language SDKs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when initializing Headers in the JavaScript kit

4 participants