diff --git a/src/Connections/RequestsConnection.php b/src/Connections/RequestsConnection.php index 803a4a2..6c1863c 100644 --- a/src/Connections/RequestsConnection.php +++ b/src/Connections/RequestsConnection.php @@ -35,7 +35,7 @@ public function load(IApiRequest $request) { $headers = $this->_buildHeaders($req); $data = $this->_buildData($req); - if(empty(array_filter($data))) + if(!$data || (is_array($data) && empty(array_filter($data)))) { // Prevent 411 errors from some servers $headers['Content-Length'] = 0;