Skip Menu |

This queue is for tickets about the Net-Amazon-S3-Policy CPAN distribution.

Report information
The Basics
Id: 87137
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Net-Amazon-S3-Policy

People
Owner: polettix [...] cpan.org
Requestors: polettix [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.1.4



Subject: Unicode handling
Add following method: sub json_octets { my $self = shift; my %params = %$self; delete $params{expiration} unless defined $params{expiration}; return encode_json(\%params); } ## end sub json_octets Modify base64 method: sub base64 { return _encode_base64($_[0]->json_octets()); } Additionally, it is possible to avoid newlines straight from MIME::Base64: sub _encode_base64 { require MIME::Base64; no warnings 'redefine'; *_encode_base64 = sub {MIME::Base64::encode_base64($_[0], '')}; goto \&_encode_base64; }