summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-12-16 16:22:21 +0000
committerThierry Vignaud <tv@mandriva.org>2009-12-16 16:22:21 +0000
commit83154b25010bf325c11ff7132d4e97cb21b799f9 (patch)
tree33cb6f320d6e84840fa77ed1fb7580cba1a33fc3
parente7ccbc5fefe9afe6f824707174c81e8b87b16a6b (diff)
downloadmgaonline-83154b25010bf325c11ff7132d4e97cb21b799f9.tar
mgaonline-83154b25010bf325c11ff7132d4e97cb21b799f9.tar.gz
mgaonline-83154b25010bf325c11ff7132d4e97cb21b799f9.tar.bz2
mgaonline-83154b25010bf325c11ff7132d4e97cb21b799f9.tar.xz
mgaonline-83154b25010bf325c11ff7132d4e97cb21b799f9.zip
(get_from) include distribution version in user agent
-rw-r--r--NEWS2
-rwxr-xr-xmdkapplet-restricted-helper3
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a9800796..0d104b16 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- include distribution version in user agent
+
Version 2.77.14 - 9 December 2009, Thierry Vignaud
- drop diagnostics, strict, vars and warnings pragmas
diff --git a/mdkapplet-restricted-helper b/mdkapplet-restricted-helper
index f6655bfe..18aefdb1 100755
--- a/mdkapplet-restricted-helper
+++ b/mdkapplet-restricted-helper
@@ -111,7 +111,8 @@ sub get_from {
my ($link, $header) = @_;
my $ua = LWP::UserAgent->new;
- $ua->agent("mdkapplet (mdkonline-$mdkonline::version)");
+ $ua->agent(sprintf('mdkapplet (mdkonline-%s; distribution: %s)',
+ $mdkonline::version, $version));
$ua->env_proxy;
my $response = $ua->request(POST $link, $header);