rabbah commented on a change in pull request #3919: Allow raw JSON string as
response for webaction without base64 encoding.
URL:
https://github.com/apache/incubator-openwhisk/pull/3919#discussion_r207251352
##########
File path: tests/dat/actions/echo-web-http.js
##########
@@ -2,11 +2,9 @@
// license agreements; and to You under the Apache License, Version 2.0.
function main(params) {
- var bodyobj = params || {};
- bodystr = JSON.stringify(bodyobj);
return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
- body: new Buffer(bodystr).toString('base64')
+ body: params
Review comment:
should this be `JSON.stringify(params)` instead?
----------------------------------------------------------------
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