Split off content type comments
[shpub.git] / src / shpub / Command / Targets.php
index eb66692a9c9b06f8231b738e1cc18bc8af5ab88c..8d76e77022fdd659e91087abb91a4b48a205f72d 100644 (file)
@@ -29,7 +29,7 @@ class Command_Targets
         $req->req->getUrl()->setQueryVariable('q', 'syndicate-to');
         $res = $req->send();
 
         $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);
         }
             Log::err('response data are not of type application/json');
             exit(2);
         }