Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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



Subject: LWP::Simple::get doesn't decode properly
Download (untitled) / with headers
text/plain 356b
LWP::Simple::get returns bytes, not text, which is confusing and a bit odd for a "just do the right thing" piece of code. In my opinion this is either a pretty easy bug to fix (via $res->decoded_content() in the implementation) ...or if bug-compatability is a concern, the method should be deprecated, and a new one introduced to to the Right Thing.
Download (untitled) / with headers
text/plain 526b
On Fri Mar 20 04:14:01 2009, DSADINOFF wrote: Show quoted text
> LWP::Simple::get returns bytes, not text, which is confusing and a bit > odd for a "just do the right thing" piece of code. > > In my opinion this is either a pretty easy bug to fix (via > $res->decoded_content() in the implementation) > > ...or if bug-compatability is a concern, the method should be > deprecated, and a new one introduced to to the Right Thing. >
I agree. Change <http://github.com/gisle/libwww- perl/commit/06e3b04d44a6e4ede79f8c6cc75bfa6eb4d6bac1>.


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.