diff --git a/extensions/EHttpClient/EHttpClient.php b/extensions/EHttpClient/EHttpClient.php index 61b15af..fe15e3c 100644 --- a/extensions/EHttpClient/EHttpClient.php +++ b/extensions/EHttpClient/EHttpClient.php @@ -1074,7 +1074,7 @@ public function request($method = null) } else { - throw new Zend_Http_Client_Exception('Adapter does not support streaming'); + throw new EHttpClientException(Yii::t('EHttpClient', 'Adapter does not support streaming')); } } @@ -1340,7 +1340,7 @@ protected function _prepareBody() if (is_array($this->paramsPost[$fieldName])) { $flattened = self::_flattenParametersArray($this->paramsPost[$fieldName], $fieldName); - foreach ($flatted as $pp) + foreach ($flattened as $pp) { $body .= self::encodeFormData($boundary, $pp[0], $pp[1]); }