Feature #43484 » 0002-Stop-using-legacy-image-x-ms-bmp-MIME-type-for-BMP-f.patch
| lib/redmine/mime_type.rb | ||
|---|---|---|
| 44 | 44 |
'image/png' => 'png', |
| 45 | 45 |
'image/tiff' => 'tiff,tif', |
| 46 | 46 |
'image/webp' => 'webp', |
| 47 |
'image/x-ms-bmp' => 'bmp', |
|
| 48 | 47 |
'application/javascript' => 'js', |
| 49 | 48 |
'application/pdf' => 'pdf', |
| 50 | 49 |
'video/mp4' => 'mp4', |
| test/helpers/application_helper_test.rb | ||
|---|---|---|
| 320 | 320 |
) |
| 321 | 321 |
assert a4.save |
| 322 | 322 |
assert_equal "Testtest.BMP", a4.filename |
| 323 |
assert_equal "image/x-ms-bmp", a4.content_type
|
|
| 323 |
assert_equal "image/bmp", a4.content_type |
|
| 324 | 324 |
assert a4.image? |
| 325 | 325 | |
| 326 | 326 |
to_test = {
|