Skip to content

Commit 7eab4df

Browse files
author
Michael Christopher
committed
Fixed issue with blank responses
1 parent 2ddc539 commit 7eab4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Services/Zencoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private function _getApiPath($opts = array())
175175
private function _processResponse($response)
176176
{
177177
list($status, $headers, $body) = $response;
178-
if ($status == 204) {
178+
if ( $status == 204 || (($status == 200 || $status == 201) && trim($body) == "")) {
179179
return TRUE;
180180
}
181181
if (empty($headers['Content-Type'])) {

0 commit comments

Comments
 (0)