mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 13:43:42 +08:00
🐛 fix: proxy bug (#49)
This commit is contained in:
@@ -38,6 +38,8 @@ func (h *HTTPClient) getClientFromPool(proxyAddr string) *http.Client {
|
||||
}
|
||||
|
||||
func (h *HTTPClient) returnClientToPool(client *http.Client) {
|
||||
// 清除代理设置
|
||||
client.Transport = nil
|
||||
clientPool.Put(client)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user