Skip to content

Commit ad6903a

Browse files
committed
minor #16706 Add documentation about trust_x_sendfile_type_header (alexander-schranz)
This PR was squashed before being merged into the 6.1 branch. Discussion ---------- Add documentation about trust_x_sendfile_type_header Fixes #16704 Commits ------- 5f1cac0 Add documentation about trust_x_sendfile_type_header
2 parents a457674 + 5f1cac0 commit ad6903a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/configuration/framework.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,19 @@ named ``kernel.http_method_override``.
180180
$request = Request::createFromGlobals();
181181
// ...
182182

183+
184+
.. _configuration-framework-http_method_override:
185+
186+
trust_x_sendfile_type_header
187+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188+
189+
**type**: ``boolean`` **default**: ``false``
190+
191+
This determines whether to trust ``x-sendfile`` header for BinaryFileResponse. If enabled, the
192+
:method:`BinaryFileResponse::trustXSendfileTypeHeader <Symfony\\Component\\HttpFoundation\\BinaryFileResponse::trustXSendfileTypeHeader>`
193+
method gets called automatically. It becomes the service container parameter
194+
named ``kernel.trust_x_sendfile_type_header``.
195+
183196
.. _reference-framework-trusted-headers:
184197

185198
trusted_headers

0 commit comments

Comments
 (0)