mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 11:21:10 +08:00
a992a910ef
Before this change, if you passed a io.ReadCloser to opt.Body then the transaction would close it. This happens as part of http.NewRequest which documents that the io.Reader passed in will be upgraded to a Closer if possible and closed as part of the Do call. After this change, we wrap any io.ReadClosers to stop them being upgraded. This means that they will never get closed and that the caller should always close them. This fixes a panic in the googlephotos integration tests. |
||
---|---|---|
.. | ||
atexit | ||
bucket | ||
cache | ||
dircache | ||
encoder | ||
env | ||
errors | ||
file | ||
israce | ||
mmap | ||
oauthutil | ||
pacer | ||
pool | ||
random | ||
readers | ||
rest |