You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
ShenYu version(s):
master
Debug logs
No response
Anything else?
content-type use single method to require, However, it is not obtained from exchange but from Attribute,
when i add this line code ,it can fix ,is it correct?
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
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
Debug logs
No response
Anything else?
content-type use single method to require, However, it is not obtained from exchange but from Attribute, when i add this line code ,it can fix ,is it correct?The text was updated successfully, but these errors were encountered: