Permalink
Browse files

Fix Undefined variable notice.

  • Loading branch information...
1 parent dbd51ae commit 7a243f578823c05d4041130cbb54e60ab3540ccf @kaecyra kaecyra committed May 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 library/core/class.proxyrequest.php
View
4 library/core/class.proxyrequest.php
@@ -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;
}

0 comments on commit 7a243f5

Please sign in to comment.