Current Behavior
Bug : external-plugin-post-resp converts reponse content types to plain/text
Steps to Reproduce
Testing with local apisix & test api server env (apisix 3.0.0 on 9080 port , test api server with 8000 port )
Plugin Configuration
{
"allow_degradation": false,
"conf":[
{
"name": "PostResponseFilter",
"value": ""
}
],
"disable": false
}
Cause many type of api servers handled by apisix, some of them don't handle http response with json automatically,
I expecting apisix not to convert response types to text/plain.
Any approach or opinion will be appreciated to fix this problems
Expected Behavior
Content type must be consist after handled by apisix upstream.
Error Logs
This seems to logical problem with apisix core, so no error logs included
Environment
- APISIX version (run
apisix version): 2.99
- Operating system (run
uname -a): RHEL 8
- OpenResty / Nginx version (run
openresty -V or nginx -V): 1.21.4
- etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info): 3.5.4
- APISIX Dashboard version, if relevant: 2.13.0
- Plugin runner version, for issues related to plugin runners: java 17
- LuaRocks version, for installation issues (run
luarocks --version): 5.4.4
Current Behavior
Bug : external-plugin-post-resp converts reponse content types to plain/text
Json response if request sended directly to test api server

Encoded to plain/text if request sended via apisix upstream

Steps to Reproduce
Testing with local apisix & test api server env (apisix 3.0.0 on 9080 port , test api server with 8000 port )
curl http://localhost:9180/apisix/admin/global_rules/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '{"plugins":{"ext-plugin-post-resp": {"allow_degradation":true,"conf":[{"value":"", "name":"PostResponseFilter"}],"disable":false}}}'
Plugin Configuration
Json response if request sended directly to test api server

Encoded to plain/text if request sended via apisix upstream

Cause many type of api servers handled by apisix, some of them don't handle http response with json automatically,
I expecting apisix not to convert response types to text/plain.
Any approach or opinion will be appreciated to fix this problems
Expected Behavior
Content type must be consist after handled by apisix upstream.
Error Logs
This seems to logical problem with apisix core, so no error logs included
Environment
apisix version): 2.99uname -a): RHEL 8openresty -Vornginx -V): 1.21.4curl http://127.0.0.1:9090/v1/server_info): 3.5.4luarocks --version): 5.4.4