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 merging of searchParams in create()/extend() #335

Merged
merged 2 commits into from
May 4, 2021

Conversation

sholladay
Copy link
Collaborator

Closes #324

This PR fixes how the searchParams option is handled in ky.create() and ky.extend() so that the user's expected search params are used. Previously, we were inadvertently adding a headers search param in some cases.

@sholladay sholladay changed the title Fix merging of searchParams in ky.create() Fix merging of searchParams in ky.create() and ky.extend() Apr 28, 2021
@sindresorhus
Copy link
Owner

Unfortunate timing with your PRs. Would you be able to fix the merge conflict?

@sholladay sholladay changed the title Fix merging of searchParams in ky.create() and ky.extend() Fix merging of searchParams in create()/extend() May 4, 2021
@sholladay
Copy link
Collaborator Author

@sindresorhus fixed the merge conflicts. This and the other two PRs are ready for review.

@sindresorhus sindresorhus merged commit b3c9e88 into sindresorhus:main May 4, 2021
@sholladay sholladay deleted the fix-options-merge branch May 4, 2021 05:23
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.

merging searchParams by ky.create() occurs unnecessary headers query string
2 participants