summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index e263989a4..ed0a3aec6 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -197,6 +197,8 @@ class HTTPClient {
}
$headers['Content-Length'] = strlen($data);
$rmethod = 'POST';
+ }elseif($method == 'GET'){
+ $data = ''; //no data allowed on GET requests
}
if($this->user) {
$headers['Authorization'] = 'Basic '.base64_encode($this->user.':'.$this->pass);