mirror of
https://github.com/rclone/rclone.git
synced 2024-11-24 07:38:22 +08:00
fs: fix Don't know how to set key "chunkSize" on upload errors in tests
Before this testing any backend which implemented the OpenChunkWriter gave this error: ERROR : writer-at-subdir/writer-at-file: Don't know how to set key "chunkSize" on upload This was due to the ChunkOption incorrectly rendering into HTTP headers which weren't understood by the backend.
This commit is contained in:
parent
264c9fb2c0
commit
8b4b59412d
|
@ -293,7 +293,7 @@ type ChunkOption struct {
|
|||
|
||||
// Header formats the option as an http header
|
||||
func (o *ChunkOption) Header() (key string, value string) {
|
||||
return "chunkSize", fmt.Sprintf("%v", o.ChunkSize)
|
||||
return "", ""
|
||||
}
|
||||
|
||||
// Mandatory returns whether the option must be parsed or can be ignored
|
||||
|
|
Loading…
Reference in New Issue
Block a user