Skip to content

Commit

Permalink
Merge pull request #14 from tyx/feature/header-on-last-response
Browse files Browse the repository at this point in the history
Add headers on print response
  • Loading branch information
tyx committed Jun 11, 2015
2 parents 4652d6d + 985f1a5 commit 4a3262a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RestApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ public function printResponse()
$response = $this->response;

echo sprintf(
"%s %s => %d:\n%s\n",
"%s %s :\n%s%s\n",
$request->getMethod(),
$request->getUrl(),
$response->getStatusCode(),
$response->getRawHeaders(),
$response->getBody()
);
}
Expand Down

0 comments on commit 4a3262a

Please sign in to comment.