diff options
| author | Claude Paroz <claude@2xlibre.net> | 2019-08-17 09:20:36 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-08-17 09:20:36 +0200 |
| commit | 7203efb799969b4662ecb58f4cefd2a5f2e0062b (patch) | |
| tree | e53a71bcfa46541c820db196f07e233e70a8274e /docs/ref/request-response.txt | |
| parent | 6805c0f99f4790f28a97d597934d0877ba81dba9 (diff) | |
Fixed #30694 -- Documented FileResponse does not seek its file source.
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 19593dfb90..3dfbf28cf6 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -1122,6 +1122,8 @@ Attributes If ``open_file`` doesn't have a name or if the name of ``open_file`` isn't appropriate, provide a custom file name using the ``filename`` parameter. + 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``. |
