mirror of https://github.com/minio/minio.git
Test for multiple values for `x-amz-meta` header added (#6753)
This commit is contained in:
parent
d2f240c791
commit
c96073f985
|
@ -172,6 +172,16 @@ func TestExtractMetadataHeaders(t *testing.T) {
|
|||
},
|
||||
shouldFail: false,
|
||||
},
|
||||
// Support multiple values
|
||||
{
|
||||
header: http.Header{
|
||||
"x-amz-meta-key": []string{"amz-meta1", "amz-meta2"},
|
||||
},
|
||||
metadata: map[string]string{
|
||||
"x-amz-meta-key": "amz-meta1,amz-meta2",
|
||||
},
|
||||
shouldFail: false,
|
||||
},
|
||||
// Empty header input returns empty metadata.
|
||||
{
|
||||
header: nil,
|
||||
|
|
Loading…
Reference in New Issue