Test for multiple values for `x-amz-meta` header added (#6753)

This commit is contained in:
Praveen raj Mani 2018-11-03 00:02:18 +05:30 committed by kannappanr
parent d2f240c791
commit c96073f985
1 changed files with 10 additions and 0 deletions

View File

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