cat: add support for --header-download #59

vfs-used-is-size
Nick Craig-Wood 2020-04-23 11:32:27 +01:00
parent e051a34fc1
commit 087bf1d584
1 changed files with 3 additions and 0 deletions

View File

@ -1296,6 +1296,9 @@ func Cat(ctx context.Context, f fs.Fs, w io.Writer, offset, count int64) error {
if opt.Start > 0 || opt.End >= 0 {
options = append(options, &opt)
}
for _, option := range fs.Config.DownloadHeaders {
options = append(options, option)
}
in, err := o.Open(ctx, options...)
if err != nil {
err = fs.CountError(err)