Keith Mashinter - 2012-06-12

We use HTTP status 204 responses to track certain kinds of operations as just
URL-based markers to be logged but having no actual content. While awstats
allows us to set ValidHTTPCodes="200 204 304", the code that tracks hits does
not recognize 204 as a valid hit. I've adjusted the code in awstats.pl 7.0 as
below to track all >= 200 and < 206 as successful hits, and leaving the
special handling of 206 as-is.

track downloads

if (int($field) >= 200 && int($field) < 206 && $MimeHashLib{$extension} eq
'd'){
$_downloads{$urlwithnoquery}->{'AWSTATS_HITS'}++;

Hopefully this can serve others and could be included in awstats 7.1.