diff --git a/Makefile.PL b/Makefile.PL
index cae8ea4..13a892c 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -9,10 +9,12 @@ WriteMakefile(
ABSTRACT_FROM => 'lib/Net/Twitter.pm',
PL_FILES => {},
PREREQ_PM => {
- 'LWP::UserAgent' => 0,
- 'URI::Escape' => 0,
+ 'LWP::UserAgent' => 0,
+ 'URI::Escape' => 0,
'Test::More' => 0,
- 'JSON::Any' => 0,
+ 'JSON::Any' => 0,
+ URI => 0,
+ 'Test::MockObject' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Net-Twitter-*' },
diff --git a/lib/Net/Twitter.pm b/lib/Net/Twitter.pm
index 1ea0297..c079b58 100755
--- a/lib/Net/Twitter.pm
+++ b/lib/Net/Twitter.pm
@@ -412,9 +412,9 @@ sub relationship_exists {
my $url = $self->{apiurl} . "/friendships/exists.json";
$url .= "?user_a=$user_a";
- $url .= "?user_b=$user_b";
+ $url .= "&user_b=$user_b";
- my $req = $self->{ua}->get( $self->{apiurl} . "/friendships/exists.json" );
+ my $req = $self->{ua}->get( $url );
$self->{response_code} = $req->code;
$self->{response_message} = $req->message;
return ( $req->is_success ) ? JSON::Any->jsonToObj( $req->content ) : undef;