Permalink
Browse files

Send rpc %args through _normal2Camel

Transmission likes things (specifically download-dir in my case) to have
dashes not underscores.

This fixes all the args up so you can generally use either.
  • Loading branch information...
1 parent 83cb6ee commit ec439e8ba7bdc2e008358ac685a2ff4eaa20ea56 @afresh1 committed Oct 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Transmission/Client.pm
@@ -538,6 +538,10 @@ sub rpc {
$method = $self->_normal2Camel($method);
+ # The keys need to be dashes as well
+ # _normal2Camel modifies a hashref in places
+ $self->_normal2Camel( \%args );
+
# make sure ids are numeric
if(ref $args{'ids'} eq 'ARRAY') {
for my $id (@{ $args{'ids'} }) {

0 comments on commit ec439e8

Please sign in to comment.