libwww-perl / WWW-Mechanize

Handy web browsing in a Perl object
https://metacpan.org/pod/WWW::Mechanize
Other
68 stars 52 forks source link

Should redefine $self->_agent #215

Closed spazm closed 6 years ago

spazm commented 7 years ago

sineswi...@gmail.com reported on Jul 20, 2012

Currently, you redefine agent on a new method, but $self->_agent will still passthru to the LWP::UA version.  Since _agent is actually a documented method (ie: non-private), you should redefine _agent to be the same thing as the new method default.

sub _agent { "WWW::Mechanize/$VERSION" }

Details

Imported from Google Code issue 238 via archive