1
mirror of https://github.com/rclone/rclone synced 2024-11-18 18:46:07 +01:00
rclone/backend
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
..
alias backend: unify NewFs path handling for wrapping remotes 2018-10-10 17:50:27 +01:00
all union: Implement union backend which reads from multiple backends 2018-09-07 15:14:08 +01:00
amazonclouddrive Update after goimports change 2018-12-04 10:11:57 +00:00
azureblob azureblob: Stop Mkdir attempting to create existing containers 2019-01-23 09:58:46 +00:00
b2 rest: fix upload of 0 length files 2019-01-24 11:38:00 +00:00
box acd,box,onedrive,pcloud: remote log.Fatal from NewFs 2018-11-11 11:00:14 +00:00
cache Update after goimports change 2018-12-04 10:11:57 +00:00
crypt crypt: check for maximum length before decrypting filename 2018-12-19 11:51:44 +00:00
drive config: when using auto confirm make user interaction configurable 2019-01-18 14:46:26 +00:00
dropbox Fixes #1788: Retry-After support for Dropbox backend 2018-12-05 22:03:30 +00:00
ftp ftp: wait for 60 seconds for connection Close then declare it dead 2019-01-15 17:32:14 +00:00
googlecloudstorage drive, googlecloudstorage: disallow on go1.8 due to dependent library changes 2018-11-26 14:10:33 +00:00
http http: fix backend with --files-from and non-existent files 2018-12-04 17:40:44 +00:00
hubic hubic: retry auth fetching if it fails to make hubic more reliable 2018-09-04 21:00:36 +01:00
jottacloud jottacloud: fix bug in --fast-list handing of empty folders - fixes #2650 2018-10-17 13:58:36 +01:00
local local: fix renaming/deleting open files on Windows #2730 2019-01-11 10:26:34 +00:00
mega docs: move documentation for options from docs/content into backends 2018-10-06 11:47:46 +01:00
onedrive rest: fix upload of 0 length files 2019-01-24 11:38:00 +00:00
opendrive opendrive: fix retries of upload chunks - fixes #2646 2018-10-25 11:50:38 +01:00
pcloud acd,box,onedrive,pcloud: remote log.Fatal from NewFs 2018-11-11 11:00:14 +00:00
qingstor qingstor: add upload chunk size/concurrency/cutoff control #2851 2019-01-18 15:20:20 +00:00
s3 s3: add --s3-bucket-acl to control bucket ACL - fixes #2918 2019-01-18 15:12:11 +00:00
sftp sftp: perform environment variable expansion on key-file 2019-01-09 10:11:33 +01:00
swift swift: efficiency: slim Object and reduce requests on upload 2018-12-02 10:23:55 +00:00
union union: fix --backup-dir on union backend 2018-10-14 15:19:02 +01:00
webdav webdav: fail soft on time parsing errors 2018-12-20 12:10:15 +00:00
yandex yandex: complete rewrite 2018-11-22 20:14:50 +00:00