diff options
author | Robert Brewer <fumanchu@aminus.org> | 2008-05-15 05:41:05 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2008-05-15 05:41:05 +0000 |
commit | 9d8db94680f19e4b9dfe1a811827f38695661693 (patch) | |
tree | fe8dbb45916011f337c04ebd8129ff40d615d7ce | |
parent | ec7e2eccfb0cfc17c774a60912061cb2338c7d51 (diff) | |
download | cherrypy-9d8db94680f19e4b9dfe1a811827f38695661693.tar.gz |
Doc tweak.
-rw-r--r-- | cherrypy/lib/static.py | 3 |
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 |