Skip to content

Commit 48cbae4

Browse files
[FrameworkBundle] Make updates from older versions smooth
1 parent 1ce7168 commit 48cbae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FrameworkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function boot()
9797
Request::enableHttpMethodParameterOverride();
9898
}
9999

100-
if ($this->container->getParameter('kernel.trust_x_sendfile_type_header')) {
100+
if ($this->container->hasParameter('kernel.trust_x_sendfile_type_header') && $this->container->getParameter('kernel.trust_x_sendfile_type_header')) {
101101
BinaryFileResponse::trustXSendfileTypeHeader();
102102
}
103103
}

0 commit comments

Comments
 (0)