Skip to content
Snippets Groups Projects

Fix Type error when proxy headers are empty

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -164,10 +164,11 @@ class StageFileProxySubscriber implements EventSubscriberInterface {
$query = $this->requestStack->getCurrentRequest()->query->all();
$query_parameters = UrlHelper::filterQueryParameters($query);
$proxy_headers = $config->get('proxy_headers') ?? '';
$options = [
'verify' => $config->get('verify'),
'query' => $query_parameters,
'headers' => $this->createProxyHeadersArray($config->get('proxy_headers')),
'headers' => $this->createProxyHeadersArray($proxy_headers),
];
if ($config->get('hotlink')) {
Loading