Skip to content

tests: Hash randomization can cause .pl MIME to vary#959

Closed
olof wants to merge 1 commit intoPerlDancer:develfrom
olof:pr/test_perl_mime_hash_randomization
Closed

tests: Hash randomization can cause .pl MIME to vary#959
olof wants to merge 1 commit intoPerlDancer:develfrom
olof:pr/test_perl_mime_hash_randomization

Conversation

@olof
Copy link
Contributor

@olof olof commented Sep 3, 2013

Since Perl 5.18, MIME::Types has started to vary the reported MIME
type for perl scripts. It can be either application/perl or text/perl.
This change will make sure that the test verifies that the
content-type is the same as MIME::Types reports for .pl, without
having to know which one it is.

You can reproduce the issue by doing

 perl -MMIME::Types -E 'say MIME::Types->new->mimeTypeOf("pl")'

a few times on perl 5.18.

This was reported to Debian, http://bugs.debian.org/720975.

Since Perl 5.18, MIME::Types has started to vary the reported MIME
type for perl scripts. It can be either application/perl or text/perl.
This change will make sure that the test verifies that the
content-type is the same as MIME::Types reports for .pl, without
having to know which one it is.
@olof
Copy link
Contributor Author

olof commented Sep 3, 2013

Looking further, I found https://rt.cpan.org/Public/Bug/Display.html?id=82100 as well.

@yanick yanick closed this in 7f051ce Sep 3, 2013
@yanick
Copy link
Contributor

yanick commented Sep 3, 2013

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants