diff options
-rw-r--r-- | FS/FS/part_export/netsapiens.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/part_export/netsapiens.pm b/FS/FS/part_export/netsapiens.pm index e19e95cb4..172f7b053 100644 --- a/FS/FS/part_export/netsapiens.pm +++ b/FS/FS/part_export/netsapiens.pm @@ -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 = |