Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Sep 12, 2016
1 parent 528b33a commit a70cde3
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -126,11 +126,9 @@ public ElasticSearchRepository(
domain = index.substring(idxAfterScheme, index.indexOf('/', 8));
}


HttpHost host = new HttpHost(domain, port, scheme);
CredentialsProvider credsProvider = new BasicCredentialsProvider();
credsProvider.setCredentials(
new AuthScope(host, null, host.getSchemeName()),
new AuthScope(new HttpHost(domain, port, scheme)),
new UsernamePasswordCredentials(username, password)
);
this.httpClient = HttpClients.custom()
Expand Down

0 comments on commit a70cde3

Please sign in to comment.