apisix
apisix copied to clipboard
bug: `content-type` request header has been rewritten
Current Behavior
When customizing the API plugin with Java, the Content type response header is rewritten, and the proxy response header is application/JSON. The value of the context type returned through the custom plugin becomes text/plain; Charset=utf-8, how to solve this problem?
Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
1、Customize Java plugins
2、run
3、watch response
Environment
- APISIX version 3.1.0
Need more info on apisix configs, upstream and route. And if any global rules(if present).
I agree with @SilentEntity, it's very likely that something is wrong in your code. You may want to give a try with a bare minimum java plugin and see if the error exists there.
Also, one of your screenshots didn't get uploaded correctly.
Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.