修复cache enable 设置错误问题

This commit is contained in:
白茶清欢 2024-06-14 22:20:20 +08:00
parent 3504899a5d
commit 533b948787

View File

@ -234,6 +234,7 @@ func (hc *HttpClient) newResponse() *define.Response {
UsedTime: 0,
RestyResponse: nil,
IsSuccess: false,
CacheEnable: nil != hc.cacheInstance && hc.cacheInstance.Enable(),
RequestCount: 0,
FailInfo: nil,
}