Call the right subroutine.

This commit is contained in:
Colin Kuskie 2010-08-05 10:49:51 -07:00
parent 18bdd2f809
commit 3e60133e10

View file

@ -168,7 +168,7 @@ sub handler {
my $output = ""; my $output = "";
if ($errorHandler->canShowPerformanceIndicators) { #show performance indicators if required if ($errorHandler->canShowPerformanceIndicators) { #show performance indicators if required
my $t = [Time::HiRes::gettimeofday()]; my $t = [Time::HiRes::gettimeofday()];
$output = dispatch($session, getRequestedUrl($session)); $output = dispatch($session, getRequestedAssetUrl($session));
$t = Time::HiRes::tv_interval($t) ; $t = Time::HiRes::tv_interval($t) ;
if ($output =~ /<\/title>/) { if ($output =~ /<\/title>/) {
$output =~ s/<\/title>/ : ${t} seconds<\/title>/i; $output =~ s/<\/title>/ : ${t} seconds<\/title>/i;
@ -189,7 +189,7 @@ sub handler {
} }
} }
else { else {
$output = dispatch($session, getRequestedUrl($session)); $output = dispatch($session, getRequestedAssetUrl($session));
} }
my $filename = $http->getStreamedFile(); my $filename = $http->getStreamedFile();