apache / apisix-go-plugin-runner

Go Plugin Runner for APISIX
https://apisix.apache.org/
Apache License 2.0
173 stars 68 forks source link

request help: #100

Closed wangfeng22 closed 2 years ago

wangfeng22 commented 2 years ago

Issue description

Following is my plugin config. I find that the response-rewrite plugin is invalid because it will only call the plugin.HTTPReqCall(buf, conn). So the ResponseRewrite.ResponseFilter will not be executed. I don't know why ty (:= header[0]) equals 2.

"ext-plugin-post-req": {
      "conf": [
        {
          "name": "response-rewrite",
          "value": "{\"status\":200,\"headers\":{\"test\":\"t\"},\"body\":\"aaa\"}"
        }
      ],
      "disable": false
    }

Environment