diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-12-16 16:22:21 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-12-16 16:22:21 +0000 |
commit | 83154b25010bf325c11ff7132d4e97cb21b799f9 (patch) | |
tree | 33cb6f320d6e84840fa77ed1fb7580cba1a33fc3 | |
parent | e7ccbc5fefe9afe6f824707174c81e8b87b16a6b (diff) | |
download | mgaonline-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-- | NEWS | 2 | ||||
-rwxr-xr-x | mdkapplet-restricted-helper | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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); |