From 5c158e708ed7ecab460e6f275ef4e845707f28aa Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 19 Jan 2017 22:49:51 +0100 Subject: [PATCH] RestApiClient: re-add lost method --- library/Director/Core/RestApiClient.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/Director/Core/RestApiClient.php b/library/Director/Core/RestApiClient.php index 889a2c1d..5c9945b7 100644 --- a/library/Director/Core/RestApiClient.php +++ b/library/Director/Core/RestApiClient.php @@ -193,6 +193,14 @@ class RestApiClient } } + protected function readPart($curl, $data) + { + $length = strlen($data); + $this->readBuffer .= $data; + $this->processEvents(); + return $length; + } + public function get($url, $body = null) { return $this->request('get', $url, $body);