Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from
Closed

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

wants to merge 1 commit into from

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