mirror of
https://github.com/rclone/rclone
synced 2024-12-22 13:03:02 +01:00
swift: add support for --header-upload and --header-download #59
This commit is contained in:
parent
1dced3b3c4
commit
8e9c25063a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user