summaryrefslogtreecommitdiff
path: root/std/mime/multipart.ts
diff options
context:
space:
mode:
authorzfx <502545703@qq.com>2020-05-20 02:22:26 +0800
committerGitHub <noreply@github.com>2020-05-19 14:22:26 -0400
commit7589d4d7c4a7c95298268eb8bea0e808feb0c6a9 (patch)
tree6a4439331da527163bd3fcd4f33e1e192f45b5e1 /std/mime/multipart.ts
parent9752b853ddac3ba41378d0ae8a8604a28e285ffb (diff)
fix(multipart): fix error when parsing file name in utf8 format (#5428)
Diffstat (limited to 'std/mime/multipart.ts')
-rw-r--r--std/mime/multipart.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/mime/multipart.ts b/std/mime/multipart.ts
index abe46f820..75d418c92 100644
--- a/std/mime/multipart.ts
+++ b/std/mime/multipart.ts
@@ -206,7 +206,7 @@ class PartReader implements Reader, Closer {
const cd = this.headers.get("content-disposition");
const params: { [key: string]: string } = {};
assert(cd != null, "content-disposition must be set");
- const comps = cd.split(";");
+ const comps = decodeURI(cd).split(";");
this.contentDisposition = comps[0];
comps
.slice(1)