6011bfd16826c073537c225dbb3c194f30d1e1d1
[paste/481.git] / phork0.diff
1 diff --git src/shpub/Command/Targets.php src/shpub/Command/Targets.php\r
2 index eb66692..ad8bd05 100644\r
3 --- src/shpub/Command/Targets.php\r
4 +++ src/shpub/Command/Targets.php\r
5 @@ -29,7 +29,8 @@ public function run(\Console_CommandLine_Result $cmdRes)\r
6          $req->req->getUrl()->setQueryVariable('q', 'syndicate-to');\r
7          $res = $req->send();\r
8  \r
9 -        if ($res->getHeader('content-type') != 'application/json') {\r
10 +        list($type, ) = explode(':', $res->getHeader('content-type'));\r
11 +        if ($type != 'application/json') {\r
12              Log::err('response data are not of type application/json');\r
13              exit(2);\r
14          }\r