mirror of
https://github.com/rclone/rclone.git
synced 2025-08-18 17:38:52 +02:00
putio: make downloading files use the rclone http Client
This fixes `--download-header` and these transactions being missed from `--dump bodies` or `--tpslimit`
This commit is contained in:
@@ -241,7 +241,7 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Read
|
||||
req.Header.Set(header, value)
|
||||
}
|
||||
// fs.Debugf(o, "opening file: id=%d", o.file.ID)
|
||||
resp, err = http.DefaultClient.Do(req)
|
||||
resp, err = o.fs.httpClient.Do(req)
|
||||
return shouldRetry(err)
|
||||
})
|
||||
if perr, ok := err.(*putio.ErrorResponse); ok && perr.Response.StatusCode >= 400 && perr.Response.StatusCode <= 499 {
|
||||
|
Reference in New Issue
Block a user