From 8e9c25063aaab1a2f4c9f38feaf2dad9e3721a3f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 23 Apr 2020 11:33:30 +0100 Subject: [PATCH] swift: add support for --header-upload and --header-download #59 --- backend/swift/swift.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/swift/swift.go b/backend/swift/swift.go index ff34ea6f2..e7f0f2417 100644 --- a/backend/swift/swift.go +++ b/backend/swift/swift.go @@ -1285,6 +1285,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op m.SetModTime(modTime) contentType := fs.MimeType(ctx, src) headers := m.ObjectHeaders() + fs.OpenOptionAddHeaders(options, headers) uniquePrefix := "" if size > int64(o.fs.opt.ChunkSize) || (size == -1 && !o.fs.opt.NoChunk) { uniquePrefix, err = o.updateChunks(in, headers, size, contentType)