summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/request-response.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 9b71adfdf9..37f3180ddc 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -1303,8 +1303,11 @@ Attributes
Note that if you pass a file-like object like ``io.BytesIO``, it's your
task to ``seek()`` it before passing it to ``FileResponse``.
- The ``Content-Length`` and ``Content-Type`` headers are automatically set
- when they can be guessed from contents of ``open_file``.
+ The ``Content-Length`` header is automatically set when it can be guessed
+ from the content of ``open_file``.
+
+ The ``Content-Type`` header is automatically set when it can be guessed
+ from the ``filename``, or the name of ``open_file``.
``FileResponse`` accepts any file-like object with binary content, for example
a file open in binary mode like so: