From 89c04fde77e1041b9a692b06d63dab699520725b Mon Sep 17 00:00:00 2001 From: Tomaz Solc Date: Fri, 17 Mar 2017 12:41:46 +0100 Subject: [PATCH] Also set $UserAgent with $countedtraffic == 6 Browser detection is also performed with 206 status and depends on $UserAgent being set. Without this change, $UserAgent is not refreshed and browser detection is performed on the value from the previous request. --- wwwroot/cgi-bin/awstats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 091d6823..69072a4d 100755 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -19026,7 +19026,7 @@ if ( $UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft' ) # Analyze: Robot from robot database (=> countedtraffic=4 if robot) #------------------------------------------------------------------ - if ( !$countedtraffic ) { + if ( !$countedtraffic || $countedtraffic == 6) { if ( $pos_agent >= 0 ) { if ($DecodeUA) { $field[$pos_agent] =~ s/%20/_/g; -- 2.47.2