Canonicalize the url becuse we're building it from the always-undecoded REQUEST_URI...
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index ca836f9..c8e9c7c 100644 (file)
@@ -537,7 +537,7 @@ sub prepare_path {
     my $query = $env->{QUERY_STRING} ? '?' . $env->{QUERY_STRING} : '';
     my $uri   = $scheme . '://' . $host . '/' . $path . $query;
 
-    $ctx->request->uri( bless \$uri, $uri_class );
+    $ctx->request->uri( (bless \$uri, $uri_class)->canonical );
 
     # set the base URI
     # base must end in a slash