Skip to content

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