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: parse API URL to get host and scheme #106

Merged
merged 1 commit into from
Dec 2, 2020
Merged

Conversation

craicoverflow
Copy link
Contributor

Instead of trimming the URL at login, instead we can just parse the API URL before building the MAS client, as all that is needed is the schema and host.

@craicoverflow craicoverflow requested a review from wtrocki December 2, 2020 09:39
@wtrocki
Copy link
Collaborator

wtrocki commented Dec 2, 2020

Very clever. It would be cool to start unit tests for config (with future PR's/refactors)

@craicoverflow
Copy link
Contributor Author

Yes, currently working on some refactoring of the config which should be more stable and can add some tests to it.

@craicoverflow craicoverflow merged commit 1e5c2f4 into master Dec 2, 2020
@craicoverflow craicoverflow deleted the parse-api-url branch December 2, 2020 10:19
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