Skip to content

Commit c810b1e

Browse files
committed
Fixed connection typo, close #1
1 parent c7557e8 commit c810b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected function _httpConnection()
158158
$certPath = config('database.connections.elasticsearch.ssl_cert') ?? null;
159159
$cb = ClientBuilder::create()->setHosts($hosts);
160160
if ($username && $pass) {
161-
$cb->setBasicAuthentication($username, 'pass')->build();
161+
$cb->setBasicAuthentication($username, $pass)->build();
162162
}
163163
if ($certPath) {
164164
$cb->setSSLVerification($certPath);

0 commit comments

Comments
 (0)