diff --git a/options.go b/options.go index 2cd38bc..3bcd540 100644 --- a/options.go +++ b/options.go @@ -65,7 +65,7 @@ func APIVersion(version string) Option { func Port(port uint16) Option { return Option{ apply: func(c *Client) error { - if port != 80 && port != 443 { + if port >= 80 && port != 443 { c.url.Host = fmt.Sprint(c.url.Hostname(), ":", port) } return nil