Skip to content

Commit

Permalink
fix response body from api
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 authored and cedric-anne committed Nov 6, 2024
1 parent f0ec8cb commit 9245b4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Glpi/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function __invoke(SymfonyRequest $request): SymfonyResponse
}

return new SymfonyResponse(
$response->getBody()->getContents(),
(string) $response->getBody(),
$response->getStatusCode(),
$response->getHeaders()
);
Expand Down
2 changes: 1 addition & 1 deletion src/Glpi/Controller/StatusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __invoke(SymfonyRequest $request): SymfonyResponse
}

return new SymfonyResponse(
$response->getBody()->getContents(),
(string) $response->getBody(),
$response->getStatusCode(),
$response->getHeaders()
);
Expand Down

0 comments on commit 9245b4d

Please sign in to comment.