Skip to content

Commit

Permalink
πŸ’š Pass Dendrite tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danieloni1 committed Jun 19, 2023
1 parent 3103885 commit 0b75fb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/media_filename_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func TestMediaFilenames(t *testing.T) {
})
}

// Returns content disposition information like (inline, filename)
// Returns content disposition information like (mediatype, filename)
func downloadForFilename(t *testing.T, c *client.CSAPI, mxcUri string, diffName string) string {
t.Helper()

Expand All @@ -139,8 +139,8 @@ func downloadForFilename(t *testing.T, c *client.CSAPI, mxcUri string, diffName
t.Fatalf("Got err when parsing content disposition: %s", err)
}

if mediaType != "inline" {
t.Fatalf("Found unexpected mediatype %s, expected inline", mediaType)
if mediaType != "attachment" {
t.Fatalf("Found unexpected mediatype %s, expected attachment", mediaType)
}

if filename, ok := params["filename"]; ok {
Expand Down

0 comments on commit 0b75fb2

Please sign in to comment.