We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aa9716 commit 25ea987Copy full SHA for 25ea987
1 file changed
src/Response.php
@@ -28,7 +28,7 @@ public function __construct(ResponseInterface $response)
28
{
29
$this->response = $response;
30
31
- if ($response->getHeader('content-type') === 'application/json') {
+ if ($response->getHeaderLine('content-type') === 'application/json') {
32
$this->raw = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR);
33
} else {
34
$this->raw = [
0 commit comments