Changeset 1084
- Timestamp:
- 05/01/06 18:59:49
- Files:
-
- trunk/cherrypy/lib/static.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/static.py
r1075 r1084 149 149 return response.body 150 150 151 def serve_download(path, name=None): 152 """Serve 'path' as an application/x-download attachment.""" 153 # This is such a common idiom I felt it deserved its own wrapper. 154 return serve_file(path, "application/x-download", "attachment", name) 151 155 152 156

