Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 16637
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: john9art [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.800
Fixed in: (no value)



Subject: LWP::UserAgent->new ignores default_headers option
Download (untitled) / with headers
text/plain 496b
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.
Download patch
application/octet-stream 231b

Message body not shown because it is not plain text.

Thanks. Applied.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.