rclone/lib
Nick Craig-Wood 5f0a8a4e28 rest: fix upload of 0 length files
Before this change if ContentLength was set in the options but 0 then
we would upload using chunked encoding.  Fix this to always upload
with a "Content-Length" header even if the size is 0.

Remove workarounds for this from b2 and onedrive backends.

This fixes the issue for the webdav backend described here:

https://forum.rclone.org/t/code-500-errors-with-webdav-nextcloud/8440/
2019-01-24 11:38:00 +00:00
..
atexit atexit: prevent Run from being called on nil signal 2018-05-12 18:59:25 +02:00
dircache drive: fix DirMove leaving a hardlinked directory behind #2245 2018-04-15 10:12:21 +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
oauthutil config: when using auto confirm make user interaction configurable 2019-01-18 14:46:26 +00:00
pacer S3: Use (custom) pacer, to retry operations when reasonable - fixes #2503 2018-09-11 07:57:03 +01:00
readers lib/readers: add mutex to RepeatableReader - fixes #2572 2018-11-12 12:02:05 +00:00
rest rest: fix upload of 0 length files 2019-01-24 11:38:00 +00:00