Skip to content

Commit

Permalink
Fix encode option
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb33300 authored Jun 10, 2024
1 parent 671b37b commit c4e7376
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PubSubClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ public function __construct(array $config = [])
$config['universeDomain']
);

if ($config['transport'] !== 'rest') {
$this->encode = true;
}

$this->projectId = $this->detectProjectId($config);

$this->clientConfig = $config;
Expand Down

0 comments on commit c4e7376

Please sign in to comment.