rclone/backend/b2
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
..
api b2: for a bucket limited application key check the bucket name 2018-12-20 12:07:35 +00:00
b2_internal_test.go Move all backends into backend directory 2018-01-12 17:07:38 +00:00
b2_test.go azureblob, b2, drive: implement set upload cutoff for chunked upload tests 2018-10-13 22:49:12 +01:00
b2.go rest: fix upload of 0 length files 2019-01-24 11:38:00 +00:00
upload.go Implement new backend config system 2018-07-16 21:20:47 +01:00