Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ec439e8ba7bdc2e008358ac685a2ff4eaa20ea56 1 parent 83cb6ee
@afresh1 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Transmission/Client.pm
View
4 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'} }) {
Please sign in to comment.
Something went wrong with that request. Please try again.