Subject: | user_agent passed incorrectly to LWP::UserAgent->new() in Reddit/Client/Request.pm |
Date: | Tue, 26 Jan 2016 17:17:08 +0000 |
To: | bug-Reddit-Client [...] rt.cpan.org |
From: | Athanasius <perl [...] miggy.org> |
Using v1.076 freshly installed via cpanp.
The call to LWP::UserAgent->new() in send() correctly maps
$self{user_agent} to the 'agent' parameter, but the call in
token_request() at line 108 does not, it still has:
my $ua = LWP::UserAgent->new(user_agent => $useragent);
Changing this to:
my $ua = LWP::UserAgent->new(agent => $useragent);
resolves:
"Unrecognized LWP::UserAgent options: user_agent at
/usr/local/share/perl/5.14.2/Reddit/Client/Request.pm line 108."
--
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME