Subject: | Catalyst::Plugin::Compress broken since Catalyst::Plugin::Unicode::Encoding is included (Error code: ERR_CONTENT_DECODING_FAILED) |
Since the Catalyst::Plugin::Unicode::Encoding is included in Catalyst itself, its no longer possible to define the order of plugins. And since unicode has to be loaded before the compress plugin, the output is garbled.
According to:
http://search.cpan.org/perldoc?Catalyst%3A%3APlugin%3A%3ACompress
It says:
"NOTE: If you want to use this module with Catalyst::Plugin::Unicode, You MUST load this plugin AFTER Catalyst::Plugin::Unicode."
The attached patch puts default plugins in first.
Subject: | patch-catalyst-pm-plugin-order.patch |
--- a/Catalyst.pm 2013-08-21 13:30:00.883376453 +0200
+++ b/Catalyst.pm 2013-08-21 13:29:46.523373373 +0200
@@ -3001,7 +3001,7 @@
() }
: $_
} @$plugins ];
- push @$plugins, $class->_default_plugins;
+ unshift @$plugins, $class->_default_plugins;
$plugins = Data::OptList::mkopt($plugins || []);
my @plugins = map {