Skip to content

Commit b9ac3c4

Browse files
authored
Fix assert of unsafe media api behaviour (#639)
1 parent 6f212c4 commit b9ac3c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/media_filename_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func TestMediaFilenames(t *testing.T) {
118118
})
119119
}
120120

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

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

142-
if mediaType != "inline" {
143-
t.Fatalf("Found unexpected mediatype %s, expected inline", mediaType)
142+
if mediaType != "attachment" {
143+
t.Fatalf("Found unexpected mediatype %s, expected attachment", mediaType)
144144
}
145145

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

0 commit comments

Comments
 (0)