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:
Nick Craig-Wood 2024-10-08 10:35:29 +01:00
parent 264c9fb2c0
commit 8b4b59412d

View File

@ -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