Skip to content

Commit 2ee4382

Browse files
committed
Merge pull request #13 from vladrusu/master
Do not send access_key if is set to null or missing
2 parents 75c2ba3 + cad6e0a commit 2ee4382

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cmosguy/Broadcasting/PushStreamBroadcastManagerProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public function boot()
1616
$this->app->make('Illuminate\Broadcasting\BroadcastManager')->extend('pushstream', function ($app, $config) {
1717
$client = new Client([
1818
'base_url' => $config['base_url'],
19-
'query' => [
19+
'query' => isset($config['access_key']) ? [
2020
'access_key' => $config['access_key']
21-
]
21+
] : null
2222
]);
2323

2424
if (!empty($config['cert'])) {

0 commit comments

Comments
 (0)