Skip to content

Commit

Permalink
Connection typo fix (v7.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdphilip committed Jun 5, 2022
1 parent efe02c5 commit f0f9f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected function _httpConnection()
$certPath = config('database.connections.elasticsearch.ssl_cert') ?? null;
$cb = ClientBuilder::create()->setHosts($hosts);
if ($username && $pass) {
$cb->setBasicAuthentication($username, 'pass')->build();
$cb->setBasicAuthentication($username, $pass)->build();
}
if ($certPath) {
$cb->setSSLVerification($certPath);
Expand Down

0 comments on commit f0f9f48

Please sign in to comment.