creabob opened a new issue, #5594:
URL: https://github.com/apache/shenyu/issues/5594

   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   in this case, HTTP return  json data, I want to change to the return format 
of XML, but the Content-Type cannot be modified.
   
   
   ### Expected Behavior
   
   i can change the response header in exchange,
   `exchange.getResponse().getHeaders().setContentType(xxx)`
   
   ### Steps To Reproduce
   
   modify the body and header of response. 
   return changed body but the content-type of response header un-changed
   
   
   ### Environment
   
   ```markdown
   ShenYu version(s):
   master
   ```
   
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   <img width="1146" alt="image" 
src="https://github.com/apache/shenyu/assets/25314080/47a89647-724b-49ed-b408-c71c7bd29af1";>
   content-type use single method to require, However, it is not obtained from 
exchange but from Attribute,
   <img width="1124" alt="image" 
src="https://github.com/apache/shenyu/assets/25314080/43769e2e-6c54-46b8-af08-6d2407161b3d";>
   when i add this line code ,it can fix ,is it correct?


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to