Hi,
I found the new decoded_content method destroying the raw content if
Content-Encoding was gzip.
This happens because:
Compress::Zlib::memGunzip
...
The contents of the buffer parameter are
destroyed after calling this function.
I fixed this the following way:
HTTP/Message.pm:
- $content_ref = \Compress::Zlib::memGunzip($$content_ref);
+ $content_ref = \Compress::Zlib::memGunzip(my $buf = $$content_ref);
I didn't check the other decoding functions, so this could happen at other
places, too.
Thanks for the decoded_content funktion - this makes using compression a lot
easier :-)
Perhaps an option to replace the current raw content could be added, this would
also have to change the Content-Encoding and Content-Type/Charset headers.
Please CC: me in your replies as I'm not on this list.
Andreas