From 5ea61bb6b1b5639ea314364dc62a54ed914da19c Mon Sep 17 00:00:00 2001 From: BBBob Date: Thu, 11 Apr 2019 12:30:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8chrome=E4=B8=AD?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=B8=8B=E8=BD=BD=E6=AF=94=E8=B5=9B=E5=90=8D?= =?UTF-8?q?=E5=B8=A6=E6=9C=89=E9=80=97=E5=8F=B7=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contest/views/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contest/views/admin.py b/contest/views/admin.py index bc5a7580..a79265e0 100644 --- a/contest/views/admin.py +++ b/contest/views/admin.py @@ -257,5 +257,5 @@ class DownloadContestSubmissions(APIView): resp = FileResponse(open(zip_path, "rb")) resp["Content-Type"] = "application/zip" file_name = os.path.basename(zip_path) - resp["Content-Disposition"] = f"attachment;filename={escape_uri_path(file_name)}" + resp["Content-Disposition"] = f"attachment;filename=\"{escape_uri_path(file_name)}\"" return resp