damog / www-tumblr

Perl interface for the Tumblr API
https://metacpan.org/module/WWW::Tumblr
13 stars 8 forks source link

Fix posting that parameters contain a UTF-8 string #15

Open ryoi432 opened 7 years ago

ryoi432 commented 7 years ago

When I create a new post including a UTF-8 string like "テスト", this error message is output.

HTTP::Message content must be bytes at /local/lib/perl5/HTTP/Request/Common.pm line 101.

The fix encode all parameters to UTF-8 by Encode module in genereting a HTTP request.