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 { } else {
trackingIn = readCounter trackingIn = readCounter
} }
for _, option := range fs.Config.UploadHeaders {
options = append(options, option)
}
compare := func(dst fs.Object) error { compare := func(dst fs.Object) error {
var sums map[hash.Type]string var sums map[hash.Type]string