|Subject:||LWP::UserAgent->new ignores default_headers option|
The documentation for LWP::UserAgent->new() lists 'default_headers' as one of the valid options. However, that option is ignored by the constructor, and the def_headers field is always set to undef. It's obviously trivial to work around, by calling default_headers on the new agent. But it's annoying and non-obvious at first. The attached file is a two-line patch that respects the option if provided. This bug starts in libwww-perl-5.800, with the introduction of the default_headers method.
Message body not shown because it is not plain text.