Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Strict mode to enforce FQDN (#65)
* Fix: Strict mode to enforce FQDN Go docs: https://golang.org/pkg/net/url/#Parse > Trying to parse a hostname and path without a scheme is invalid but may not necessarily return an error, due to parsing ambiguities. ``` fqdnURL, err := url.Parse(*myFqdn) if err != nil { c.handleErr(request, client, err) return } ``` Example: myFqdn was set to `b607b847b180`, scheme is missing, but no error (as mentioned in the docs). We don't need to treat myFqdn as URL since it is not an URL but rather FQDN (which is schemaless)
- Loading branch information