fix: test

This commit is contained in:
liwei committed 2024-05-01 18:38:13 +08:00
1 parent 91ac841b9d
commit b8e36b483e
2 files changed
+5 -7

No files matched your search

+3 -2
View File
@@ -451,10 +451,11 @@ func (f *Fetcher) splitChunk() (chunks []*chunk) {
}
func (f *Fetcher) buildClient() *http.Client {
transport := &http.Transport{}
transport := &http.Transport{
Proxy: f.ctl.ProxyConfig.ToHandler(),
}
// Cookie handle
jar, _ := cookiejar.New(nil)
transport.Proxy = f.ctl.ProxyConfig.ToHandler()
return &http.Client{
Transport: transport,
Jar: jar,