Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
heyjorgedev committed Jul 15, 2024
1 parent e1f0973 commit 2dafb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transporters/HttpTransporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public function request(string $method, string $path, array $options = []): Resp
$request = (new Request())
->withMethod($method)
->withUrl($this->baseUrl->append($path))
->withHeaders($this->headers->with('Content-Type', 'application/json'))
->withBody($options['body'] ?? null);

return $this->send($request);
}

public function send(Request $request): Response
{
$request = $request->appendHeaders($this->headers->with('Content-Type', 'application/json'));
try {
$response = $this->httpClient->sendRequest($request->toPsr7Request());

Expand Down

0 comments on commit 2dafb8e

Please sign in to comment.