diff --git a/core/commands/pin/remotepin.go b/core/commands/pin/remotepin.go index 80572bfb80ad2f8de62a2d17c03224fda652bad2..606b23f6d55f1ea48667af22d4bb9d8ab1d26f83 100644 --- a/core/commands/pin/remotepin.go +++ b/core/commands/pin/remotepin.go @@ -740,7 +740,7 @@ func getRemotePinServiceInfo(env cmds.Environment, name string) (endpoint, key s func normalizeEndpoint(endpoint string) (string, error) { uri, err := neturl.ParseRequestURI(endpoint) - if err != nil || !strings.HasPrefix(uri.Scheme, "http") { + if err != nil || !(uri.Scheme == "http" || uri.Scheme == "https") { return "", fmt.Errorf("service endpoint must be a valid HTTP URL") }