Fixed bug where if encoding was set in the config file it wasn't used,
[catagits/Catalyst-Runtime.git] / t / lib / TestAppEncodingSetInApp / Controller / Root.pm
diff --git a/t/lib/TestAppEncodingSetInApp/Controller/Root.pm b/t/lib/TestAppEncodingSetInApp/Controller/Root.pm
new file mode 100644 (file)
index 0000000..608f2af
--- /dev/null
@@ -0,0 +1,15 @@
+package TestAppEncodingSetInApp::Controller::Root;
+use Moose;
+use namespace::autoclean;
+
+BEGIN { extends 'Catalyst::Controller'; }
+
+__PACKAGE__->config(namespace => '');
+
+sub default: Local{
+    my ( $self, $c ) = @_;
+
+    $c->res->body('');
+}
+
+1;