dever 7 년 전
부모
커밋
40fda7c25b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      front/api/main.py

+ 2 - 2
front/api/main.py

@@ -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)