Skip to content

Commit 790468f

Browse files
committed
[#11618] minor tweaks
1 parent ae93ff9 commit 790468f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

components/http_foundation.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -528,20 +528,20 @@ if it should::
528528
The ``BinaryFileResponse`` will only handle ``X-Sendfile`` if the particular header is present.
529529
For Apache, this is not the default case.
530530

531-
To add the header use the ``mod_headers`` Apache module and add the following to the Apache configuration.
531+
To add the header use the ``mod_headers`` Apache module and add the following to the Apache configuration:
532532

533533
.. code-block:: apache
534534
535-
<IfModule mod_xsendfile.c>
536-
# This is already present somewhere...
537-
XSendFile on
538-
XSendFilePath ...some path...
535+
<IfModule mod_xsendfile.c>
536+
# This is already present somewhere...
537+
XSendFile on
538+
XSendFilePath ...some path...
539539
540-
# This needs to be added:
541-
<IfModule mod_headers.c>
542-
RequestHeader set X-Sendfile-Type X-Sendfile
540+
# This needs to be added:
541+
<IfModule mod_headers.c>
542+
RequestHeader set X-Sendfile-Type X-Sendfile
543+
</IfModule>
543544
</IfModule>
544-
</IfModule>
545545
546546
With the ``BinaryFileResponse``, you can still set the ``Content-Type`` of the sent file,
547547
or change its ``Content-Disposition``::

0 commit comments

Comments
 (0)