Skip to content

Fix adding options.host to defaultHosts list #148

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

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

MasterOdin
Copy link
Contributor

PR fixes a bug reported in #120 (comment), where the current indexOf check will only succeed if options.host was already in exports._defaultHosts, as opposed to the desired behavior of appending it if it's not in the array.

I've also cleaned up the nested conditional to just be one level as the nesting was not necessary.

@eriktrom eriktrom merged commit c87abaf into http-party:master Feb 26, 2025
@eriktrom
Copy link
Member

Thank you for this bug fix. Good work.

@MasterOdin MasterOdin deleted the patch-1 branch February 27, 2025 15:24
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.

2 participants