Skip to content

[7.x.x] Add media type to writeResultJSON response header#212

Open
marmoure wants to merge 2 commits into
develop-7.x.xfrom
7.x.x/hotfix/json-response
Open

[7.x.x] Add media type to writeResultJSON response header#212
marmoure wants to merge 2 commits into
develop-7.x.xfrom
7.x.x/hotfix/json-response

Conversation

@marmoure
Copy link
Copy Markdown
Contributor

writeResultJSON Ignores media types setting and don't encode them in the response, this PR will make sure it will add the appropriate media type setting to the response headers and enable support for:

util:declare-option("output:medita-type", "application/json"),

This PR also adds tests for RESTSerivce to make sure it returns the correct content type and media type headers and prioritize it over the request Accept headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant