dubeejw commented on a change in pull request #2646: Content type header
improvements
URL:
https://github.com/apache/incubator-openwhisk/pull/2646#discussion_r134032541
##########
File path:
tests/src/test/scala/whisk/core/controller/test/WebActionsApiTests.scala
##########
@@ -890,7 +998,7 @@ trait WebActionsApiTests extends ControllerTestCommon with
BeforeAndAfterEach wi
invocationsAllowed += 1
actionResult = Some(JsObject(
"headers" -> JsObject(
- "content-type" -> "xyz/bar".toJson),
+ "content-type" -> "xyzbar".toJson),
Review comment:
@akrabat, another way would be to create list of custom media types and
content types for what you need.
Something like this for instance:
```
val jsonPatchMediaType =
MediaType.applicationWithOpenCharset("application/json-patch+json")
val jsonPatchContentType = jsonPatchMediaType withCharset
HttpCharsets.`UTF-8`
```
----------------------------------------------------------------
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