Skip to content

Commit

Permalink
Basic authenticator does not send auth header, fixes #205
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Apr 17, 2014
1 parent 1650178 commit d6ec6fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public IpCamDevice(String name, URL url, IpCamMode mode, IpCamAuth auth) {
this.auth = auth;

if (auth != null) {
AuthScope scope = new AuthScope(new HttpHost(url.toString()));
AuthScope scope = new AuthScope(new HttpHost(url.getHost().toString()));
client.getCredentialsProvider().setCredentials(scope, auth);
}
}
Expand Down

0 comments on commit d6ec6fd

Please sign in to comment.