We recently pulled in the Jetty ES plugin and noticed that it doesn't copy over custom headers. This is an issue as some of our logic is dependent on setting cookies (in a custom filter we've developed).
The issue looks like it's with JettyHttpServerRestChannel's sendResponse method; the equivalent ES class (NettyHttpChannel) has logic to copy over headers from the ES custom RestResponse class to JBoss', but the Jetty one doesn't copy them into the HttpServletResponse.
We recently pulled in the Jetty ES plugin and noticed that it doesn't copy over custom headers. This is an issue as some of our logic is dependent on setting cookies (in a custom filter we've developed).
The issue looks like it's with JettyHttpServerRestChannel's sendResponse method; the equivalent ES class (NettyHttpChannel) has logic to copy over headers from the ES custom RestResponse class to JBoss', but the Jetty one doesn't copy them into the HttpServletResponse.