diff options
author | Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> | 2020-04-16 12:47:12 +0200 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2020-04-17 17:56:24 +0200 |
commit | 80c07a6c7bc0c0c817ba0b83990cca57d6c3606a (patch) | |
tree | c5aa19ebe3ad2fa958baa5b38e73dcfb03577eae | |
parent | f1cef2d67f49a76131cf7b9c6cbb0fcdebb36c7c (diff) | |
download | cherrypy-git-80c07a6c7bc0c0c817ba0b83990cca57d6c3606a.tar.gz |
Use :rfc: sphinx role in docstrings
-rw-r--r-- | cherrypy/lib/static.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/lib/static.py b/cherrypy/lib/static.py index fbc2e09d..2e340963 100644 --- a/cherrypy/lib/static.py +++ b/cherrypy/lib/static.py @@ -54,7 +54,7 @@ def serve_file(path, content_type=None, disposition=None, name=None, If disposition is not None, the Content-Disposition header will be set to "<disposition>; filename=<name>; filename*=utf-8''<name>" - as described in RFC6266 (https://tools.ietf.org/html/rfc6266#appendix-D). + as described in :rfc:`6266#appendix-D`. If name is None, it will be set to the basename of path. If disposition is None, no Content-Disposition header will be written. """ @@ -129,7 +129,7 @@ def serve_fileobj(fileobj, content_type=None, disposition=None, name=None, If disposition is not None, the Content-Disposition header will be set to "<disposition>; filename=<name>; filename*=utf-8''<name>" - as described in RFC6266 (https://tools.ietf.org/html/rfc6266#appendix-D). + as described in :rfc:`6266#appendix-D`. If name is None, 'filename' will not be set. If disposition is None, no Content-Disposition header will be written. |