fix steps

This commit is contained in:
Saw-jan
2023-10-05 11:42:59 +05:45
committed by Sawjan Gurung
parent e439deaba9
commit c138bc68fd
2 changed files with 5 additions and 2 deletions

View File

@@ -657,6 +657,8 @@ class HttpRequestHelper {
* @return array
*/
public static function parseResponseAsXml(ResponseInterface $response):array {
// rewind so that we can reparse it if it was parsed already
$response->getBody()->rewind();
$body = $response->getBody()->getContents();
$parsedResponse = [];
if ($body && \substr($body, 0, 1) === '<') {