From: Tomaz Solc Date: Fri, 17 Mar 2017 11:41:46 +0000 (+0100) Subject: Also set $UserAgent with $countedtraffic == 6 X-Git-Tag: AWSTATS_7_8~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89c04fde77e1041b9a692b06d63dab699520725b;p=thirdparty%2FAWStats.git 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. --- 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;