Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

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

X Report information
Id: 47336
Status: resolved
Left: 0 min
Priority: 0/0
Queue: XML-TreePP

Owner: Nobody
Requestors: ikegami <IKEGAMI [...] cpan.org>
Cc:
AdminCc:

Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



X History Display mode: Brief headersFull headers
#   Thu Jun 25 12:03:40 2009 ikegami - Ticket created  
Subject: Handle HTTP encodings such as gzip
[text/plain 266b]
In parsehttp_lwp, please change

my $text = $res->content();
to

# Use decoded_content to handle HTTP Content-Encoding
my $text = $res->decoded_content( charset => 'none' );

This will allow your module to handle compressed HTTP responses
transparently.

#   Tue Jun 30 02:44:44 2009 KAWASAKI - Correspondence added  
RT-Send-CC: xml-treepp[...]yahoogroups.com
[text/plain 614b]
Hi ikegami-san and Steven,

Thank you both for reporting this.
I've just released version 0.39 of XML::TreePP for fix it.

----------------------------------------------------------------
2009/06/30 (0.39)
* parsehttp now uses decoded_content method under LWP 5.802.
This allows compressed content by Content-Encoding: gzip, etc.
(thanks to cormanaz and ikegami)
http://perlmonks.org/?node_id=774537
http://rt.cpan.org/Public/Bug/Display.html?id=47336
----------------------------------------------------------------

See http://www.kawa.net/works/perl/treepp/treepp-e.html or on CPAN.

#   Tue Jun 30 02:44:45 2009 RT_System - Status changed from 'new' to 'open'  
#   Tue Jun 30 02:44:46 2009 KAWASAKI - Status changed from 'open' to 'resolved'