diff --git a/src/Service/RequestService.php b/src/Service/RequestService.php index 709f0311..e7f14379 100644 --- a/src/Service/RequestService.php +++ b/src/Service/RequestService.php @@ -840,7 +840,7 @@ public function proxyHandler(array $data, array $configuration, ?Source $proxy = 'body' => ($body ?? "Can't get a response & body for this type of Exception: ").get_class($exception), ], $contentType, - $xmlRootNode + isset($xmlRootNode) === true ? $xmlRootNode : null ); $response = new Response($content, $statusCode, ($headers ?? ['Content-Type' => $contentType])); }//end try