Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add character encoding to REST responses #718

Merged
merged 3 commits into from
Jan 14, 2016

Conversation

darkv
Copy link
Member

@darkv darkv commented Dec 23, 2015

This patch adds a default character encoding that can be overridden to ERXRestWriter classes. By this the HTTP header Content-Type of the response will be set accordingly making it possible for a client to detect the correct encoding. This encoding information will be passed on to the WOResponse object too so that correct handling of the response content is possible.

For Wonder6 this patch will force users to implement the IERXRestResponse.setContentEncoding(String) method in own classes as including a default interface implementation works only in Java 8.

@darkv darkv removed the Wonder6 label Jan 14, 2016
darkv added a commit that referenced this pull request Jan 14, 2016
Add character encoding to REST responses
@darkv darkv merged commit 81064d0 into wocommunity:master Jan 14, 2016
@darkv darkv deleted the ERXRest_patch branch January 14, 2016 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant