Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apache-http-client-plugin在抓取返回结果为二进制数据的http请求时,会造成上层业务代码拿到的responseBody数据错乱 #207

Open
trytocatch opened this issue May 22, 2023 · 1 comment · May be fixed by #208

Comments

@trytocatch
Copy link

apache-http-client-plugin在抓取返回结果为二进制数据的http请求时,会造成上层业务代码拿到的responseBody数据错乱,问题在于ApacheHttpClientProcessor.getResponseBody在获取数据时,误操作修改了原始内容。

@Aresxue
Copy link

Aresxue commented Jun 27, 2024

问题在于当请求和响应的httpEntity不是isRepeatable的时候,应该使用org.apache.http.entity.BufferedHttpEntity进行包装,原生的插件很明显没有考虑到这个情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants