Skip to content

Instantly share code, notes, and snippets.

@rkitover
Created March 29, 2013 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkitover/5268592 to your computer and use it in GitHub Desktop.
Save rkitover/5268592 to your computer and use it in GitHub Desktop.
$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)); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment