chiark / gitweb /
Better HTTP User-Agent strings (rot13 the library, say who we are)
[ypp-sc-tools.db-test.git] / yarrg / commod-results-processor
index d322c1c7b682638d14c861b573386e97d81cc279..99c6924739391838729b35ea97e17463b83122ed 100755 (executable)
@@ -29,7 +29,6 @@ use strict (qw(vars));
 use HTTP::Request;
 use IO::File;
 use POSIX;
-use LWP::UserAgent;
 use XML::Parser;
 
 use Commods;
@@ -230,7 +229,7 @@ sub main__tsv () {
 
 our ($pctb) = $ENV{'YPPSC_YARRG_PCTB'};
 
-our ($ua)= LWP::UserAgent->new;
+our ($ua)= http_useragent("commod-results-processor $mode");
 
 sub refresh_commodmap() {
     die unless $pctb;