git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split off content type comments
[shpub.git]
/
src
/
shpub
/
Command
/
Targets.php
diff --git
a/src/shpub/Command/Targets.php
b/src/shpub/Command/Targets.php
index eb66692a9c9b06f8231b738e1cc18bc8af5ab88c..8d76e77022fdd659e91087abb91a4b48a205f72d 100644
(file)
--- 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();
$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);
}