necessary for bin/cdr-netsapeins.import
[freeside.git] / FS / FS / part_export / netsapiens.pm
index e19e95c..172f7b0 100644 (file)
@@ -39,9 +39,11 @@ sub ns_command {
   my @args = ( $command );
 
   if ( $method eq 'PUT' ) {
-    my $content = $method eq 'PUT' ? $ns->buildQuery( { @_ } ) : '';
+    my $content = $ns->buildQuery( { @_ } );
     $content =~ s/^\?//;
     push @args, $content;
+  } elsif ( $method eq 'GET' ) {
+    $args[0] .= $ns->buildQuery( { @_ } );
   }
 
   my $auth =