CPAN-API/metacpan-web — pull request #372 by rwstauner (2011-10-29 05:30:37+00:00)
Title: Attempt to decode raw (non-json) api responses

try to show files more correctly more often.

After some discussion on irc (both on #metacpan and #catalyst)
it seems like this might be a good change to show files more correctly more often.

I don't know what I'm doing with encodings so this code may not be correct,
but it does seem to fix these:

* http://metacpan.org/source/VDG/DBIx-Class-Tree-Mobius-0.212/META.yml (see also #202)
* http://metacpan.org/source/INGY/YAML-0.77/lib/YAML.pm (toggle pod on and search for `=head1 AUTHOR`)
* http://metacpan.org/source/RWSTAUNER/Dist-Zilla-Plugin-Run-0.011/Changes
* http://metacpan.org/raw/RWSTAUNER/Dist-Zilla-Plugin-Run-0.011/Changes
* http://metacpan.org/source/AUDREYT/Plack-Middleware-Static-Range-0.01/README

Please try out this change, test normal and exotic urls, see if anything looks worse!