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 2018/07/30 22:33:23 UTC
[GitHub] csantanapr edited a comment on issue #3919: Allow raw JSON string
as response for webaction without base64 encoding.
csantanapr edited a comment on issue #3919: Allow raw JSON string as response for webaction without base64 encoding.
URL: https://github.com/apache/incubator-openwhisk/pull/3919#issuecomment-409033615
This is a feature request from an user that is calling an external API, this API returns JSON as string, and the web action want to return it as is.
For example this will work and not give an error by the controller
```
function main() {
return {
headers: {
'Content-Type': 'application/json'
},
body: '{"foo":"bar"}'
}
}
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services