Skip to content

Commit

Permalink
Service-ReCaptcha reflect refactor HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
sasezaki committed Nov 2, 2011
1 parent 6096f82 commit 26e27d8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions library/Zend/Service/ReCaptcha/ReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
*/
namespace Zend\Service\ReCaptcha;

use Zend\Config\Config;
use Zend\Config\Config,
Zend\Http\Request,
Zend\Service\AbstractService;

/**
* Zend_Service_ReCaptcha
Expand All @@ -40,7 +42,7 @@
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class ReCaptcha extends \Zend\Service\AbstractService
class ReCaptcha extends AbstractService
{
/**
* URI to the regular API
Expand Down Expand Up @@ -466,7 +468,8 @@ protected function _post($challengeField, $responseField)
/* Make the POST and return the response */
return $httpClient->setUri(self::VERIFY_SERVER)
->setParameterPost($postParams)
->request(\Zend\Http\Client::POST);
->setMethod(Request::METHOD_POST)
->send();
}

/**
Expand Down

0 comments on commit 26e27d8

Please sign in to comment.