Skip to content

Commit

Permalink
Fix assert of unsafe media api behaviour (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshqou authored Jun 15, 2023
1 parent 6f212c4 commit b9ac3c4
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 b9ac3c4

Please sign in to comment.