rclone/lib/rest
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
..
rest_header_reset_go17.go rest: Remove auth headers on HTTP redirect 2018-10-11 21:20:33 +01:00
rest_header_reset.go rest: Remove auth headers on HTTP redirect 2018-10-11 21:20:33 +01:00
rest.go rest: fix upload of 0 length files 2019-01-24 11:38:00 +00:00
url_test.go Move dircache, oauthutil, rest and pacer modules into lib 2018-01-12 17:07:38 +00:00
url.go Move dircache, oauthutil, rest and pacer modules into lib 2018-01-12 17:07:38 +00:00