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: compare default apiHost with apiHost configuration instead of writeKey #314

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

pietropizzi
Copy link
Contributor

I just found this bug that when I override the apiHost through the configuration it is set back to the default host once the settings are fetched. Event though the settings don't have an overridden host.

That is because you compare the host against configuration.values.writeKey instead of configuration.values.apiHost.

This fixes that.

@pietropizzi
Copy link
Contributor Author

@alanjcharles @bsneed tagging you as most recent contributors. We are trying to migrate to analytics-swift from the legacy objc version and this is something we would need fixed. Please have a look.

@bsneed
Copy link
Contributor

bsneed commented Mar 21, 2024

Thanks for finding that @pietropizzi ! We'll get this merged shortly.

@bsneed bsneed merged commit fa5bc72 into segmentio:main Mar 21, 2024
1 of 8 checks passed
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