$res = $req->send();\r
\r
- if ($res->getHeader('content-type') != 'application/json') {\r
-+ list($type, ) = explode(':', $res->getHeader('content-type'));\r
++ list($type, ) = explode(';', $res->getHeader('content-type'));\r
+ if ($type != 'application/json') {\r
Log::err('response data are not of type application/json');\r
exit(2);\r