Subject: | Suboptimal choice of mime types? |
With the latest 2.16 a number of CPAN modules started to fail their test suites. For example, in the Dancer-1.3202 distribution the following tests fail:
...
# Failed test 'a mime_type is found with MIME::Types'
# at t/04_static_file/01_mime_types.t line 16.
# got: 'application/vnd.easykaraoke.cdgdownload'
# expected: 'application/zip'
# Looks like you failed 1 test of 10.
t/04_static_file/01_mime_types.t ....................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/10 subtests
...
# Failed test 'mime_type can be forced'
# at t/06_helpers/01_send_file.t line 83.
# got: 'image/vnd.mozilla.apng'
# expected: 'image/png'
# Looks like you failed 1 test of 25.
t/06_helpers/01_send_file.t .........................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/25 subtests
...
Looking at the results it seems that instead of the widely used image/png now image/vnd.mozilla.apng is returned, similar in the case of application/zip.
A similar problem is in the Catalyst-Controller-Imager-0.06 test suite (see CPAN RT #124225).
The problem in App-revealup-0.21 (see https://github.com/yusukebe/App-revealup/issues/11 ) looks acceptable to me --- formerly image/x-bmp was expected, now it's image/bmp.