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']; }