From 13ee19717c905dc1fa4b3677149cb83a5f202bc1 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 22 Aug 2023 16:00:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Safari=E3=83=96=E3=83=A9=E3=82=A6?= =?UTF-8?q?=E3=82=B6=E3=81=A7=E7=94=9F=E7=89=A9=E7=94=B1=E6=9D=A5=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E3=83=80=E3=82=A6=E3=83=B3?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=83=89=E3=81=99=E3=82=8B=E3=81=A8=E3=80=81?= =?UTF-8?q?=E6=97=A5=E6=9C=AC=E8=AA=9E=E5=90=8D=E3=81=8C=E3=81=8A=E3=81=8B?= =?UTF-8?q?=E3=81=97=E3=81=8F=E3=81=AA=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/jskult-webapp/src/aws/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecs/jskult-webapp/src/aws/s3.py b/ecs/jskult-webapp/src/aws/s3.py index de11949c..2b6251b1 100644 --- a/ecs/jskult-webapp/src/aws/s3.py +++ b/ecs/jskult-webapp/src/aws/s3.py @@ -23,7 +23,7 @@ class S3Client(AWSAPIClient): 'Bucket': bucket_name, 'Key': file_key, # 別ファイル名に変更するための仕掛け。Unicode文字はquoteでエスケープが必要 - 'ResponseContentDisposition': f'attachment; filename="{quote(download_filename)}"' + 'ResponseContentDisposition': f"attachment; filename*=UTF-8''{quote(download_filename)}" }, # 有効期限20分 ExpiresIn=1200