dubeejw commented on a change in pull request #116: Return Expected JSON 
Response from Web Action
URL: 
https://github.com/apache/incubator-openwhisk-package-cloudant/pull/116#discussion_r127008795
 
 

 ##########
 File path: actions/changesWebAction.js
 ##########
 @@ -79,7 +79,13 @@ function main(params) {
             .then(() => {
                  return createTrigger(db, triggerID, newTrigger);
             })
-            .then(resolve)
+            .then(() => {
+                 resolve({
+                     statusCode: 200,
+                     headers: {'Content-Type': 'application/json'},
+                     body: new Buffer(JSON.stringify({'status': 
'success'})).toString('base64'),
 
 Review comment:
   No, the JSON needs to be Base64 encoded and the controller decodes it when 
serving up the response.
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to