public
Created

  • Download Gist
nopaste.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
$pkg->app->hook(before_dispatch => sub {
my $c = shift;
 
my $url = $c->server_url;
my $path = $c->req->url->path;
my $query = $c->req->url->query;
 
$url->path($path);
$url->query($query);
 
$c->req->url($url);
 
$c->app->log->info($url);
$c->app->log->info($c->dumper($url));
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.