summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index e42db26c4..aaded04ae 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -179,7 +179,7 @@ class HTTPClient {
$headers['Referer'] = $this->referer;
$headers['Connection'] = 'Close';
if($method == 'POST'){
- $post = _postEncode($data);
+ $post = $this->_postEncode($data);
$headers['Content-Type'] = 'application/x-www-form-urlencoded';
$headers['Content-Length'] = strlen($post);
}
@@ -424,7 +424,7 @@ class HTTPClient {
* @author Andreas Gohr <andi@splitbrain.org>
*/
function _postEncode($data){
- foreach($params as $key => $val){
+ foreach($data as $key => $val){
if($url) $url .= '&';
$url .= $key.'='.urlencode($val);
}