summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2008-05-15 05:41:05 +0000
committerRobert Brewer <fumanchu@aminus.org>2008-05-15 05:41:05 +0000
commit9d8db94680f19e4b9dfe1a811827f38695661693 (patch)
treefe8dbb45916011f337c04ebd8129ff40d615d7ce
parentec7e2eccfb0cfc17c774a60912061cb2338c7d51 (diff)
downloadcherrypy-9d8db94680f19e4b9dfe1a811827f38695661693.tar.gz
Doc tweak.
-rw-r--r--cherrypy/lib/static.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cherrypy/lib/static.py b/cherrypy/lib/static.py
index a262e7e2..dea2b746 100644
--- a/cherrypy/lib/static.py
+++ b/cherrypy/lib/static.py
@@ -17,7 +17,8 @@ def serve_file(path, content_type=None, disposition=None, name=None):
"""Set status, headers, and body in order to serve the given file.
The Content-Type header will be set to the content_type arg, if provided.
- If not provided, the Content-Type will be guessed by its extension.
+ If not provided, the Content-Type will be guessed by the file extension
+ of the 'path' argument.
If disposition is not None, the Content-Disposition header will be set
to "<disposition>; filename=<name>". If name is None, it will be set