Skip to content

Commit

Permalink
Merge pull request #1 from zack-carlson/csv-formatter-patch-1
Browse files Browse the repository at this point in the history
Update CsvFormatter.php
  • Loading branch information
zack-carlson authored Jan 22, 2024
2 parents 6682a01 + 3244c8d commit 7ab2d80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Omniphx/Forrest/Formatters/CsvFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ public function setBody($data)
public function formatResponse($response)
{
$body = $response->getBody();
$header = $response->getHeaders();
$contents = (string) $body;
return $contents;

return [
'header' => $header,
'body' => $contents,

];
}

public function getDefaultMIMEType()
Expand Down

0 comments on commit 7ab2d80

Please sign in to comment.