rclone/lib
Nick Craig-Wood a992a910ef rest: use readers.NoCloser to stop body being closed
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.
2019-08-26 12:23:31 +01:00
..
atexit build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
bucket lib/bucket: shorten locking window where possible 2019-08-22 23:06:59 +01:00
cache cache: factor fs cache into lib/cache 2019-08-06 11:43:42 +01:00
dircache lib/dircache: add a way to dump the DirCache for debugging 2019-08-22 11:57:35 +01:00
encoder build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
env lib/env: Make env_test.go support Windows 2019-05-14 07:55:08 +01:00
errors build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
file lib/file: reimplement os.OpenFile allowing rename/delete open files under Windows 2019-01-11 10:26:34 +00:00
israce fs/asyncreader: skip some tests to work around race detector bug 2018-08-20 12:34:29 +01:00
mmap lib/mmap: library to do memory allocation with anonymous memory maps 2019-02-02 14:35:56 +00:00
oauthutil oauthutil: note that the same version is recommended for remote auth 2019-08-10 17:31:08 +01:00
pacer build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
pool build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
random Review random string/password generation 2019-08-25 11:09:19 +01:00
readers lib/readers: add NoCloser to stop upgrades from io.Reader to io.ReadCloser 2019-08-26 12:23:31 +01:00
rest rest: use readers.NoCloser to stop body being closed 2019-08-26 12:23:31 +01:00