Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Undefined variable notice.

  • Loading branch information...
commit 7a243f578823c05d4041130cbb54e60ab3540ccf 1 parent dbd51ae
Tim Gunter kaecyra authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 library/core/class.proxyrequest.php
4 library/core/class.proxyrequest.php
View
@@ -21,6 +21,7 @@ class ProxyRequest {
public $RequestDefaults;
public $RequestHeaders;
public $RequestBody;
+ public $ParsedBody;
public $ResponseHeaders;
public $ResponseStatus;
@@ -397,6 +398,9 @@ public function Request($Options = NULL, $QueryParams = NULL, $Files = NULL, $Ex
curl_setopt($Handler, CURLOPT_POST, TRUE);
curl_setopt($Handler, CURLOPT_POSTFIELDS, $PostData);
+ if (!is_array($PostData) && !is_object($PostData))
+ $SendExtraHeaders['Content-Length'] = strlen($PostData);
+
$this->RequestBody = $PostData;
}
Please sign in to comment.
Something went wrong with that request. Please try again.