Skip to content

Commit

Permalink
Merge pull request #35 from SardorAlif/hotfix/fix_basic_auth_error
Browse files Browse the repository at this point in the history
hotfix/fix_basic_auth_error
  • Loading branch information
freekmurze authored Jan 12, 2024
2 parents 4091a6b + 8c53d23 commit 3785efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/HttpDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function sendSpan(Span $span)

$promise = Http::async()->asJson()
->withHeaders($this->options['headers'] ?? [])
->when($this->options['basic_auth'], function (Factory $client) {
->when(isset($this->options['basic_auth']), function (Factory $client) {
$client->withBasicAuth(
$this->options['basic_auth']['username'],
$this->options['basic_auth']['password'],
Expand Down

0 comments on commit 3785efd

Please sign in to comment.