dubeejw commented on a change in pull request #2910: [2862] Get protocol from 
client config base url
URL: 
https://github.com/apache/incubator-openwhisk/pull/2910#discussion_r147562047
 
 

 ##########
 File path: tools/cli/go-whisk-cli/commands/api.go
 ##########
 @@ -818,7 +818,7 @@ func parseApi(cmd *cobra.Command, args []string) 
(*whisk.Api, *QualifiedName, er
     } else {
         urlActionPackage = "default"
     }
-    api.Action.BackendUrl = "https://"; + Client.Config.Host + "/api/v1/web/" + 
qName.GetNamespace() + "/" + urlActionPackage + "/" + qName.GetEntity() + 
".http"
+    api.Action.BackendUrl = Client.Config.BaseUrl.Scheme + "://" + 
Client.Config.Host + "/api/v1/web/" + qName.GetNamespace() + "/" + 
urlActionPackage + "/" + qName.GetEntity() + ".http"
 
 Review comment:
   Need a test for this.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to