Depend on n:c 0.12 to work on perl >= 5.11.2.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / CGI.pm
index 413ce11..1443a2f 100644 (file)
@@ -195,7 +195,7 @@ sub prepare_path {
     my $query = $ENV{QUERY_STRING} ? '?' . $ENV{QUERY_STRING} : '';
     my $uri   = $scheme . '://' . $host . '/' . $path . $query;
 
-    $c->request->uri( bless \$uri, $uri_class );
+    $c->request->uri( bless(\$uri, $uri_class)->canonical );
 
     # set the base URI
     # base must end in a slash