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 for #2274/ #2255 EndpointToRegion-> ip adress & port without sche… #2277

Conversation

TommyWind
Copy link

…me in endpoint

*Issue #2274/ #2255

*Description of changes: fixes EndpointToRegion#guessRegionNameForEndpoint for Endpoint String without Schema. Example added to tests.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@TommyWind
Copy link
Author

@debora-ito I've just seen there is an opened PR for the same issue. Sorry for duplication. If it is ok, I am going to leave it here for a review anyway. This solution looks for me a bit leaner. Thank you in advance.🙂

@zoewangg
Copy link
Contributor

zoewangg commented Apr 2, 2020

Hi @TommyWind Thank you for your pull request! After careful reviewing the code, we have decided to merge #2256 instead because there might be some other edge cases that cause URI.create to throw exception such as ://127.0.0.1. We think catching exception might be a better solution for this case. Going to go ahead and close this PR. Thank you again for the pull request! :)

@zoewangg zoewangg closed this Apr 2, 2020
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.

None yet

2 participants