From 362caf74aeed6d92e68cfa444e5f29ef0d2460fa Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Tue, 9 Dec 2025 15:15:05 +0100 Subject: [PATCH] Check if header exists before forcing it --- 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 9a430392..8f44db7b 100644 --- a/src/Service/RequestService.php +++ b/src/Service/RequestService.php @@ -817,7 +817,7 @@ public function proxyHandler(array $data, array $configuration, ?Source $proxy = unset($headers['Content-Length']); } - if ($data['accept'] !== $headers['content-type'][0]) { + if (isset($headers['content-type']) === false || $data['accept'] !== $headers['content-type'][0]) { $headers['content-type'] = $data['accept']; }