X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/a792f0517fad7b18d3faabd0266c527efb6103da..bb34295b8772673294bc77c9f4ce93af57281208:/src/shpub/Command/Targets.php?ds=sidebyside diff --git a/src/shpub/Command/Targets.php b/src/shpub/Command/Targets.php index eb66692..8d76e77 100644 --- a/src/shpub/Command/Targets.php +++ b/src/shpub/Command/Targets.php @@ -29,7 +29,7 @@ class Command_Targets $req->req->getUrl()->setQueryVariable('q', 'syndicate-to'); $res = $req->send(); - if ($res->getHeader('content-type') != 'application/json') { + if (Util::getMimeType($res) != 'application/json') { Log::err('response data are not of type application/json'); exit(2); }