From 2eea5a2580fabb4d01605e2072ab98323899bb1f Mon Sep 17 00:00:00 2001 From: P3ngSaM <61768364+P3ngSaM@users.noreply.github.com> Date: Thu, 23 Feb 2023 14:57:14 +0800 Subject: [PATCH] =?UTF-8?q?changes=20=E4=B8=8B=E8=BD=BD=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Router/ReportRouter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/Router/ReportRouter.py b/App/Router/ReportRouter.py index 75cd86c..a299bba 100644 --- a/App/Router/ReportRouter.py +++ b/App/Router/ReportRouter.py @@ -689,7 +689,7 @@ def func(schemas: ReportSchemas.SearchReportFlowReqBody, db: Session = Depends(g myfile.write(result) task = BackgroundTask(del_file, file_path) response = FileResponse(file_path, filename=file, - media_type='application/vnd.openxmlformats-officedocument.wordprocessingml.document', + media_type='application/octet-stream', background=task) return response