From bd500ca75d8ad1dbda14ed38a4204cb6bb5a6a8c Mon Sep 17 00:00:00 2001 From: Tomasz Gregorczyk Date: Tue, 7 Feb 2017 03:17:15 +0100 Subject: [PATCH] Add HHVM fix for request --- app/code/community/Studioforty9/Recaptcha/Helper/Request.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/code/community/Studioforty9/Recaptcha/Helper/Request.php b/app/code/community/Studioforty9/Recaptcha/Helper/Request.php index 04276dd..cd30b73 100644 --- a/app/code/community/Studioforty9/Recaptcha/Helper/Request.php +++ b/app/code/community/Studioforty9/Recaptcha/Helper/Request.php @@ -73,6 +73,11 @@ public function verify() ); $client = $this->getHttpClient(); + if (defined('HHVM_VERSION')) { + $client->setConfig(array( + 'httpversion' => Zend_Http_Client::HTTP_0 + )); + } $client->setParameterPost($params); $errors = array();