You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/06/19 12:28:35 UTC

[GitHub] [openwhisk-package-alarms] rabbah commented on a change in pull request #219: Handle URL params gently

rabbah commented on a change in pull request #219:
URL: https://github.com/apache/openwhisk-package-alarms/pull/219#discussion_r442811089



##########
File path: action/alarm.js
##########
@@ -33,8 +40,9 @@ function main(msg) {
 
     var endpoint = msg.apihost;
     var webparams = common.createWebParams(msg);
+    var apiHost = addHTTPS(endpoint);
 
-    var url = `https://${endpoint}/api/v1/web/whisk.system/alarmsWeb/alarmWebAction.http`;
+    var url = `${apiHost}/api/v1/web/whisk.system/alarmsWeb/alarmWebAction.http`;

Review comment:
       ```suggestion
       var url = `${apiHost}/api/v1/web/whisk.system/alarmsWeb/alarmWebAction`;
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org