We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2432d3e commit c6f2599Copy full SHA for c6f2599
http/client.go
@@ -85,7 +85,9 @@ func ClientWithRawAbsPath(rawAbsPath bool) ClientOpt {
85
86
// NewClient constructs a new HTTP-backed command executor.
87
func NewClient(address string, opts ...ClientOpt) cmds.Executor {
88
- if !strings.HasPrefix(address, "http://") {
+ if strings.Contains(address, "443") {
89
+ address = "https://" + address
90
+ } else if !strings.HasPrefix(address, "http://") {
91
address = "http://" + address
92
}
93
0 commit comments