You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/09/14 15:42:07 UTC

[incubator-openwhisk] 01/02: Correct unable to set apihost issue.

This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git

commit 0eda995039249de45dc64c43edba38dca43de06e
Author: David Liu <da...@cn.ibm.com>
AuthorDate: Mon Jul 10 14:57:43 2017 +0800

    Correct unable to set apihost issue.
---
 tools/cli/go-whisk-cli/commands/util.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/cli/go-whisk-cli/commands/util.go b/tools/cli/go-whisk-cli/commands/util.go
index fed9f59..9288cae 100644
--- a/tools/cli/go-whisk-cli/commands/util.go
+++ b/tools/cli/go-whisk-cli/commands/util.go
@@ -818,6 +818,10 @@ func getURLBase(host string, path string) (*url.URL, error)  {
         return nil, whiskErr
     }
 
+    if !strings.HasPrefix(host, "http") {
+        host = "https://" + host
+    }
+
     urlBase := fmt.Sprintf("%s%s", host, path)
     url, err := url.Parse(urlBase)
 

-- 
To stop receiving notification emails like this one, please contact
"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>.