(no commit message)
authorChristian Weiske <cweiske@cweiske.de>
Sun, 27 Aug 2017 19:48:20 +0000 (21:48 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 27 Aug 2017 19:48:20 +0000 (21:48 +0200)
phork0.diff [new file with mode: 0644]

diff --git a/phork0.diff b/phork0.diff
new file mode 100644 (file)
index 0000000..6011bfd
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git src/shpub/Command/Targets.php src/shpub/Command/Targets.php\r
+index eb66692..ad8bd05 100644\r
+--- src/shpub/Command/Targets.php\r
++++ src/shpub/Command/Targets.php\r
+@@ -29,7 +29,8 @@ public function run(\Console_CommandLine_Result $cmdRes)\r
+         $req->req->getUrl()->setQueryVariable('q', 'syndicate-to');\r
+         $res = $req->send();\r
\r
+-        if ($res->getHeader('content-type') != 'application/json') {\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
+         }\r