Permalink
Browse files

Fixed wrong rewrite to usage

  • Loading branch information...
1 parent 7349969 commit e3fae6d246173b95f92248b419f0e1a337df72f2 @Getty Getty committed May 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/App/DuckPAN/Web.pm
View
@@ -71,8 +71,9 @@ sub request {
die "Spice tested here must have a rewrite..." unless $spice_class->has_rewrite;
my $rewrite = $spice_class->rewrite;
my $re = $rewrite->has_from ? qr{$rewrite->from} : qr{(.*)};
+ p($path_remainder);
if (my @captures = $path_remainder =~ m/$re/) {
- my $to = $rewrite->to;
+ my $to = $rewrite->parsed_to;
for (1..@captures) {
my $index = $_-1;
my $cap_from = '\$'.$_;

0 comments on commit e3fae6d

Please sign in to comment.