Subject: | [PATCH] client breaks on charset=utf-8 from the server |
I don't really know what is going on and where the bug is. I noticed a
few days a go that a script of mine stopped working that talked to
rt.cpan.org. Maybe somebody added the charset=utf-8 to the Content-Type
header? I don't know.
Then I looked at the code of REST.pm and immediately spotted the
encoding conversion as a potential magnet for bug. So I tried to replace
the whole mechanism with the decoded_content method. As a result my
script started to work again. All tests pass too.
I hope this helps. I'm really sorry that I cannot explain what is wrong
with the current code.
The patch is uploaded to my CPAN directory as
ANDK/patches/RT-Client-REST-0.34-ANDK-01.patch.gz
Enjoy,