Skip to content

Commit

Permalink
added raw format in order to return unformated guzzle response (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
happybunnyz authored Sep 2, 2024
1 parent 7e82097 commit d27ed60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Omniphx/Forrest/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ private function handleRequest()
$this->assignExceptions($ex);
}

// If the format is raw, return the response as is
if($this->options['format'] == 'raw') {
return $response;
}

$formattedResponse = $this->formatter->formatResponse($response);

$this->event->fire('forrest.response', [$formattedResponse]);
Expand Down

0 comments on commit d27ed60

Please sign in to comment.