reta commented on a change in pull request #812:
URL: https://github.com/apache/cxf/pull/812#discussion_r658295941



##########
File path: 
rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/interceptor/SseInterceptor.java
##########
@@ -73,16 +73,6 @@ public void handleMessage(Message message) {
                     servletResponse = (HttpServletResponse)response;
                     builder = Response.status(servletResponse.getStatus());
                     
-                    @SuppressWarnings("unchecked")

Review comment:
       The headers are included into the response for a reason, for example, at 
last these two would be lost.
   
   ```
   < Host: localhost:8686
   < User-Agent: curl/7.71.1
   ```
   
   In general, CXF uses `PROTOCOL_HEADERS` to store additional headers, which 
could be mutated and returned in the response. It would be good to know what 
exactly is the issue with adding headers to response? Any particular headers 
are problematic? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to