Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from DeveloperMarius/socketiojwt
Browse files Browse the repository at this point in the history
Use defined headers
  • Loading branch information
tohenk authored Jul 5, 2021
2 parents e463099 + d9a3839 commit 39ed403
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Engine/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ public function request($uri, $headers = [], $options = [])
}
}

if(isset($this->options['headers'])){
$headers = array_merge($headers, $this->options['headers']);
}

$request = array_merge([
sprintf('%s %s HTTP/1.1', strtoupper($method), $uri),
sprintf('Host: %s', $this->parsed['host'] . ':' . $this->parsed['port']),
Expand Down

0 comments on commit 39ed403

Please sign in to comment.