We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ddc86d commit 82829c4Copy full SHA for 82829c4
src/HttpClient/Message/ResponseMediator.php
@@ -52,7 +52,7 @@ public static function getContent(ResponseInterface $response)
52
{
53
$body = (string) $response->getBody();
54
55
- if (\in_array($body, ['', 'null', 'true', 'false'], true) && 0 === \strpos($response->getHeaderLine(self::CONTENT_TYPE_HEADER), self::JSON_CONTENT_TYPE)) {
+ if (!\in_array($body, ['', 'null', 'true', 'false'], true) && 0 === \strpos($response->getHeaderLine(self::CONTENT_TYPE_HEADER), self::JSON_CONTENT_TYPE)) {
56
return JsonArray::decode($body);
57
}
58
0 commit comments