Skip to content

Commit

Permalink
fix: [PubSub] encode option
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb33300 committed Jun 10, 2024
1 parent 671b37b commit c963fc2
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 c963fc2

Please sign in to comment.