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::
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,
547547or change its ``Content-Disposition ``::
You can’t perform that action at this time.
0 commit comments