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