fix refresh rclone http client

This commit is contained in:
Mukhtar Akere
2025-07-07 00:08:48 +01:00
parent f656b7e4e2
commit dba5604d79

View File

@@ -136,15 +136,7 @@ func (c *Cache) refreshRclone() error {
return nil return nil
} }
client := &http.Client{ client := http.DefaultClient
Timeout: 60 * time.Second,
Transport: &http.Transport{
MaxIdleConns: 10,
IdleConnTimeout: 60 * time.Second,
DisableCompression: false,
MaxIdleConnsPerHost: 5,
},
}
// Create form data // Create form data
data := c.buildRcloneRequestData() data := c.buildRcloneRequestData()