rabbah commented on issue #2630: JSON encoding is inconsistent for web actions URL: https://github.com/apache/incubator-openwhisk/issues/2630#issuecomment-323243833 suggested patch ```bash diff --git a/core/controller/src/main/scala/whisk/core/controller/WebActions.scala b/core/controller/src/main/scala/whisk/core/controller/WebActions.scala index c963863..47ddee6 100644 --- a/core/controller/src/main/scala/whisk/core/controller/WebActions.scala +++ b/core/controller/src/main/scala/whisk/core/controller/WebActions.scala @@ -286,7 +286,7 @@ protected[core] object WhiskWebActionsApi extends Directives { private def interpretHttpResponseAsJson(code: StatusCode, headers: List[RawHeader], js: JsValue, transid: TransactionId) = { findContentTypeInHeader(headers, transid, `application/json`) match { - case Success(mediaType) if (mediaType == `application/json`) => + case Success(mediaType) if (mediaType == `application/json` || mediaType == `application/json-patch+json`) => ``` I wonder if we should also add `application/vnd.api+json`. ---------------------------------------------------------------- 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
