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

Filter out undefined query parameters and headers #209

Merged
merged 4 commits into from
Oct 5, 2020

Conversation

frangio
Copy link
Contributor

@frangio frangio commented Oct 3, 2020

Fixes #206

I initially filtered out undefined query parameters in add-query-parameters.ts, but then I realized that undefined headers were also being erroneously included. To fix both of those I made it so that undefined values are removed from the options passed by the user before merging.

@frangio frangio changed the title Filter out undefined query parameters Filter out undefined query parameters and headers Oct 3, 2020
@gr2m gr2m added the Type: Bug Something isn't working as documented label Oct 4, 2020
@gr2m gr2m merged commit 50d1b53 into octokit:master Oct 5, 2020
@github-actions
Copy link

github-actions bot commented Oct 5, 2020

🎉 This PR is included in version 6.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GET/HEAD requests: do not attach query parameter if value is undefined
2 participants