Skip to content

Commit 25ea987

Browse files
committed
response bug fix for the json responses
1 parent 2aa9716 commit 25ea987

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(ResponseInterface $response)
2828
{
2929
$this->response = $response;
3030

31-
if ($response->getHeader('content-type') === 'application/json') {
31+
if ($response->getHeaderLine('content-type') === 'application/json') {
3232
$this->raw = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR);
3333
} else {
3434
$this->raw = [

0 commit comments

Comments
 (0)