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 /mdkapplet-restricted-helper | |
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
Diffstat (limited to 'mdkapplet-restricted-helper')
-rwxr-xr-x | mdkapplet-restricted-helper | 3 |
1 files changed, 2 insertions, 1 deletions
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); |