Skip to content

bug: request设置新的body替换客户端原请求body无效 #172

Description

@wodingyang

Issue description

在插件中将客户端发送的body内容替换成新的body无效,后端接受的还是客户端内容

Environment

  • your apisix-java-plugin-runner version
    0.2.0
io.github.ericluoliu apisix-runner-core 0.5.0 ### Minimal test code / Steps to reproduce the issue

1.客户端发送原始请求,body内容如下:
image
2.apisix命中路由后调用java插件,修改body内容
image
image
3.查看上游接收到的请求,body内容为客户端发送的原始数据,插件没有替换成功
image

What's the actual result? (including assertion message & call stack if applicable)

日志打印:请求体------------>aaa

What's the expected result?

日志打印:请求体------------>abcdefghijklmnopqrstuvwxyz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions