Map binary to string in PHP since ByteArray is no longer in use.

This commit is contained in:
Elijah Miller
2016-01-30 10:41:46 -05:00
parent 6698c532e6
commit 74536af3b9
6 changed files with 10 additions and 14 deletions

View File

@@ -230,7 +230,7 @@ class ApiClient
throw new ApiException("API call to $url timed out: ".serialize($response_info), 0, null, null);
} elseif ($response_info['http_code'] >= 200 && $response_info['http_code'] <= 299 ) {
// return raw body if response is a file
if ($responseType == '\SplFileObject' || $responseType == 'ByteArray') {
if ($responseType == '\SplFileObject' || $responseType == 'string') {
return array($http_body, $response_info['http_code'], $http_header);
}