rabbah commented on a change in pull request #2609: Support json response in
HTTP web actions without base64 encoding.
URL:
https://github.com/apache/incubator-openwhisk/pull/2609#discussion_r132829345
##########
File path:
core/controller/src/main/scala/whisk/core/controller/WebActions.scala
##########
@@ -241,7 +241,7 @@ protected[core] object WhiskWebActionsApi extends
Directives {
fields.get("body") map {
case JsString(str) => interpretHttpResponse(code, headers,
str, transid)
- case _ => terminate(BadRequest,
Messages.httpContentTypeError)(transid)
+ case js => interpretHttpResponseAsJson(code,
headers, js, transid)
Review comment:
I'd have to match against js object, array, etc. don't think it's necessary
- jit should get there.
----------------------------------------------------------------
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