Merge pull request #4061 from toint-admin/v7-dev

fix OkHttpEngine重定向后未释放资源(issue#4060@Github)
This commit is contained in:
Golden Looly
2025-09-10 08:57:30 +08:00
committed by GitHub

View File

@@ -177,6 +177,8 @@ public class OkHttpEngine extends AbstractClientEngine {
// 重定向默认使用GET
message.method(Method.GET);
}
// 释放连接资源issue#4060@Github
response.body().close();
// 自增计数器
context.incrementRedirectCount();
return doSend(context);