crnk-project / crnk-framework

JSON API library for Java
Apache License 2.0
285 stars 153 forks source link

Cannot set response header from within repository methods #854

Open mlehmannm opened 1 year ago

mlehmannm commented 1 year ago

I can access request header (Accept-Language) by implementing HttpRequestContextAware in my repository class. I try to set response headers (Content-Language), but JsonApiRequestProcessor does not copy those response headers to the final http response. Is there another way to achieve that?

mlehmannm commented 1 year ago

The pull request has been updated. It should build now. #855

lgringo commented 1 year ago

:+1: Hi, thanks for the PR. Hope it will be merged soon. Is there anything that can be done to help ?