|
@@ -308,5 +308,7 @@ class down_path(Load):
|
|
# 没有文件信息,则不允许下载
|
|
# 没有文件信息,则不允许下载
|
|
self.out('没有权限下载')
|
|
self.out('没有权限下载')
|
|
|
|
|
|
|
|
+ self.set_header ('Content-Type', 'application/octet-stream')
|
|
|
|
+ self.set_header ('Content-Disposition', 'attachment; filename='+file['local'])
|
|
content = File.readContent(file['local'])
|
|
content = File.readContent(file['local'])
|
|
self.write(content)
|
|
self.write(content)
|