X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/b2351eea120bb8f6293aae113e77a3e3edd46687..fa014d88919516a9763a6a9ab0c620ef102f04e4:/src/shpub/Request.php diff --git a/src/shpub/Request.php b/src/shpub/Request.php index 3d7221d..dce163f 100644 --- a/src/shpub/Request.php +++ b/src/shpub/Request.php @@ -108,7 +108,7 @@ class Request ); $shown = false; - if ($res->getHeader('content-type') == 'application/json') { + if (Util::getMimeType($res) == 'application/json') { $errData = json_decode($res->getBody()); if (!isset($errData->error)) { Log::err('Error response does not contain "error" property');