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/18 14:55:30 UTC
[incubator-openwhisk-cli] 02/16: 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-cli.git
commit 8556b55e00de14a516a27ac5e8b6a60f4bd3e130
Author: David Liu <da...@cn.ibm.com>
AuthorDate: Mon Jul 10 14:57:43 2017 +0800
Correct unable to set apihost issue.
---
commands/util.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/commands/util.go b/commands/util.go
index de0b1f7..e7ba176 100644
--- a/commands/util.go
+++ b/commands/util.go
@@ -819,6 +819,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>.