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

master
Praveen raj Mani 6 years ago committed by kannappanr
parent d2f240c791
commit c96073f985
  1. 10
      cmd/handler-utils_test.go

@ -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…
Cancel
Save