Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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
with
22 additions
and 15 deletions.
- +2 −6 canonicalize.go
- +20 −9 canonicalize_test.go