Add test for ignoring invalid metadata
This commit is contained in:
parent
a7e4fcc42e
commit
59c7a9fab6
|
@ -31,7 +31,8 @@ func TestPost(t *testing.T) {
|
||||||
ReqHeader: map[string]string{
|
ReqHeader: map[string]string{
|
||||||
"Tus-Resumable": "1.0.0",
|
"Tus-Resumable": "1.0.0",
|
||||||
"Upload-Length": "300",
|
"Upload-Length": "300",
|
||||||
"Upload-Metadata": "foo aGVsbG8=, bar d29ybGQ=",
|
// Invalid Base64-encoded values should be ignored
|
||||||
|
"Upload-Metadata": "foo aGVsbG8=, bar d29ybGQ=, hah INVALID",
|
||||||
},
|
},
|
||||||
Code: http.StatusCreated,
|
Code: http.StatusCreated,
|
||||||
ResHeader: map[string]string{
|
ResHeader: map[string]string{
|
||||||
|
|
Loading…
Reference in New Issue