mirror of
https://github.com/minio/minio.git
synced 2025-03-31 09:43:43 -04:00
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,
|
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.
|
// Empty header input returns empty metadata.
|
||||||
{
|
{
|
||||||
header: nil,
|
header: nil,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user