summaryrefslogtreecommitdiff
path: root/cherrypy/tutorial
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2006-08-12 16:16:54 +0000
committerRobert Brewer <fumanchu@aminus.org>2006-08-12 16:16:54 +0000
commit74ffdeba5ce9695af23f3f7affe890524499ec3c (patch)
tree6b07ad4c04a1c81034087c3033f289d8ce61d41b /cherrypy/tutorial
parentbc586826fb1b608d9862f7b7dad93ec9a97582fe (diff)
downloadcherrypy-git-74ffdeba5ce9695af23f3f7affe890524499ec3c.tar.gz
Fix for #547 (serve_file still uses contentType instead of content_type). Thanks, michele!
Diffstat (limited to 'cherrypy/tutorial')
-rw-r--r--cherrypy/tutorial/tut09_files.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cherrypy/tutorial/tut09_files.py b/cherrypy/tutorial/tut09_files.py
index bfa7b568..7ac531b6 100644
--- a/cherrypy/tutorial/tut09_files.py
+++ b/cherrypy/tutorial/tut09_files.py
@@ -27,14 +27,14 @@ the response is a file to be saved, rather than displayed.
Use cherrypy.lib.static.serve_file for that; it takes four
arguments:
-serve_file(path, contentType=None, disposition=None, name=None)
+serve_file(path, content_type=None, disposition=None, name=None)
Set "name" to the filename that you expect clients to use when they save
your file. Note that the "name" argument is ignored if you don't also
provide a "disposition" (usually "attachement"). You can manually set
-"contentType", but be aware that if you also use the encoding tool, it
+"content_type", but be aware that if you also use the encoding tool, it
may choke if the file extension is not recognized as belonging to a known
-Content-Type. Setting the contentType to "application/x-download" works
+Content-Type. Setting the content_type to "application/x-download" works
in most cases, and should prompt the user with an Open/Save dialog in
popular browsers.