make uri_for unicode safe
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Engine / Request / URI.pm
index cf0c408..97b2579 100644 (file)
@@ -41,4 +41,15 @@ sub uri_with : Local {
     $c->forward('TestApp::View::Dump::Request');\r
 }\r
 \r
+sub uri_with_utf8 : Local {\r
+    my ( $self, $c ) = @_;\r
+\r
+    # change the current uri\r
+    my $uri = $c->req->uri_with( { unicode => "\x{2620}" } );\r
+    \r
+    $c->res->header( 'X-Catalyst-uri-with' => "$uri" );\r
+    \r
+    $c->forward('TestApp::View::Dump::Request');\r
+}\r
+\r
 1;\r