1
mirror of https://github.com/rclone/rclone synced 2024-11-26 04:07:22 +01:00

rcat: add support for --header-upload #59

This commit is contained in:
Nick Craig-Wood 2020-04-23 11:32:48 +01:00
parent 087bf1d584
commit 1dced3b3c4

View File

@ -1344,6 +1344,9 @@ func Rcat(ctx context.Context, fdst fs.Fs, dstFileName string, in io.ReadCloser,
} else {
trackingIn = readCounter
}
for _, option := range fs.Config.UploadHeaders {
options = append(options, option)
}
compare := func(dst fs.Object) error {
var sums map[hash.Type]string