From 9d00bff28a1a144e0da3ddef4bc7e2f60f5d3721 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Thu, 13 Mar 2025 14:44:00 +0100 Subject: [PATCH] Fix error handling --- src/Service/RequestService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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