mirror of
https://gitee.com/dromara/hutool.git
synced 2025-10-07 23:24:43 +08:00
Merge pull request #4061 from toint-admin/v7-dev
fix OkHttpEngine重定向后未释放资源(issue#4060@Github)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user