Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Be more strict in accepted client URLs
Go 1.8 does more strict URL checks. E.g. Go 1.7 accepted to parse the URL `"127.0.0.1:9200"` whereas Go 1.8 will raise an error: "first path segment in URL cannot contain colon". We use that as a chance to also be more strict about what is considered a valid URL. Until now, we accepted strings like `"127.0.0.1"` or `"127.0.0.1:9200"`. Those are invalid URLs in the first place, and we now treat them as such. Close #429
- Loading branch information
Showing
2 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters