X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/3c23b2cde4f8d6de57d5e1cc86828d6d200da65d..97a82467ccfaef7c809b366dbc84ad42afd6f495:/src/shpub/Command/Like.php diff --git a/src/shpub/Command/Like.php b/src/shpub/Command/Like.php index 70e836f..8baeee7 100644 --- a/src/shpub/Command/Like.php +++ b/src/shpub/Command/Like.php @@ -28,6 +28,11 @@ class Command_Like ); $req = new \HTTP_Request2($this->host->endpoints->micropub, 'POST'); + if (version_compare(PHP_VERSION, '5.6.0', '<')) { + //correct ssl validation on php 5.5 is a pain, so disable + $req->setConfig('ssl_verify_host', false); + $req->setConfig('ssl_verify_peer', false); + } $req->setHeader('Content-type', 'application/x-www-form-urlencoded'); $req->setHeader('Authorization', 'Bearer ' . $this->host->token); $req->setBody($body);