Skip to content

Commit 19d5472

Browse files
committed
fix
1 parent 6c51114 commit 19d5472

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DirectAdmin/DirectAdmin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ public function rawRequest($method, $uri, $options, $allow_html = false)
167167
}
168168
}
169169
$body = $response->getBody()->getContents();
170-
return Conversion::responseToArray($body);
170+
if($allow_html == false) {
171+
return Conversion::responseToArray($body);
172+
} else {
173+
return $body;
174+
}
171175
} catch (TransferException $exception) {
172176
// Rethrow anything that causes a network issue
173177
throw new DirectAdminException(sprintf('%s request to %s failed', $method, $uri), 0, $exception);

0 commit comments

Comments
 (0)