diff --git a/composer.json b/composer.json index 4d599e3..6d81974 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,7 @@ "require": { "ext-mbstring": "*", "pmvc/pmvc": "*", + "pmvc-plugin/cookie": "*", "pmvc-plugin/curl": "*" }, "minimum-stability": "dev" diff --git a/src/_ask.php b/src/_ask.php index 717aa07..5428ac6 100644 --- a/src/_ask.php +++ b/src/_ask.php @@ -78,7 +78,7 @@ private function ask($minionsServer, $curl, $more=null) ) ); } - $options[CURLOPT_COOKIE] = join('; ', $cookies); + $options[CURLOPT_COOKIE] = $pCookie->toString($cookies); } $host = $this->_getHost($minionsServer);