Skip to content

Commit

Permalink
#1534 Fix filename encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jan 28, 2022
1 parent b7b196c commit ec179a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class AttachmentCtrl @Inject() (
header = ResponseHeader(
200,
Map(
"Content-Disposition" -> s"""attachment; filename="$filename.zip"""",
"Content-Disposition" -> s"""attachment; ${HttpHeaderParameterEncoding.encode("filename", filename)}.zip""",
"Content-Type" -> "application/zip",
"Content-Transfer-Encoding" -> "binary",
"Content-Length" -> Files.size(f).toString
Expand Down

0 comments on commit ec179a8

Please sign in to comment.