added test to address rt #36442
[catagits/Test-WWW-Mechanize-Catalyst.git] / t / lib / Catty / Controller / Root.pm
index d7cb3b7..4d74605 100644 (file)
@@ -137,5 +137,12 @@ sub user_agent : Global {
 
 }
 
+# per https://rt.cpan.org/Ticket/Display.html?id=36442
+sub bad_content_encoding :Global {
+    my($self, $c) = @_;
+    $c->res->content_encoding('duff');
+    $c->res->body('foo');
+}
+
 1;