|
@@ -382,6 +382,6 @@ class down_path(Load):
|
|
|
self.out('没有权限下载')
|
|
|
|
|
|
self.set_header ('Content-Type', 'application/octet-stream')
|
|
|
- self.set_header ('Content-Disposition', 'attachment; filename='+file['local'])
|
|
|
- content = File.readContent(file['local'])
|
|
|
+ self.set_header ('Content-Disposition', 'attachment; filename='+file['name']+file['ext'])
|
|
|
+ content = File.read(file['local'])
|
|
|
self.write(content)
|