From 087bf1d58422323cd5ee32ec2f071caebdc1e5f8 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 23 Apr 2020 11:32:27 +0100 Subject: [PATCH] cat: add support for --header-download #59 --- fs/operations/operations.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/operations/operations.go b/fs/operations/operations.go index 4d525459d..392401b0c 100644 --- a/fs/operations/operations.go +++ b/fs/operations/operations.go @@ -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)