File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -528,20 +528,20 @@ if it should::
528
528
The ``BinaryFileResponse `` will only handle ``X-Sendfile `` if the particular header is present.
529
529
For Apache, this is not the default case.
530
530
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:
532
532
533
533
.. code-block :: apache
534
534
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...
539
539
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>
543
544
</IfModule>
544
- </IfModule>
545
545
546
546
With the ``BinaryFileResponse ``, you can still set the ``Content-Type `` of the sent file,
547
547
or change its ``Content-Disposition ``::
You can’t perform that action at this time.
0 commit comments