Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix params handling when there are multiple values (ingy)

  • Loading branch information...
commit fbbe4c595f5541957d3f5ef04c72b8a48195d7e6 1 parent 25d8dc7
@miyagawa authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Tatsumaki/Request.pm
View
3  lib/Tatsumaki/Request.pm
@@ -11,7 +11,8 @@ sub _build_parameters {
my $decoded_params = {};
while (my($k, $v) = each %$params) {
- $decoded_params->{decode_utf8($k)} = decode_utf8($v);
+ $decoded_params->{decode_utf8($k)} = ref $v eq 'ARRAY'
+ ? [ map decode_utf8($_), @$v ] : decode_utf8($v);
}
return $decoded_params;
Please sign in to comment.
Something went wrong with that request. Please try again.