{
my($url,$contents,%args)=@_;
+ # A bit ineffective but we must process all the possibilities to get stable 'headers_in' hits!
+ my %map=map(($_=>a_href($url->{$_},$contents,%args)),keys(%$url));
my $cc;
$cc||=Geo::IP->new()->country_code_by_addr(remote_ip()) if $have_Geo_IP;
$cc||="";
- $url=$url->{$cc};
- return $contents if !$url;
- return a_href $url,$contents,%args;
+ my $r=$map{$cc};
+ return $r if $r;
+ return $contents;
}
sub make ($)