summaryrefslogtreecommitdiff
path: root/std/mime/testdata
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/testdata
parent9752b853ddac3ba41378d0ae8a8604a28e285ffb (diff)
fix(multipart): fix error when parsing file name in utf8 format (#5428)
Diffstat (limited to 'std/mime/testdata')
-rw-r--r--std/mime/testdata/sample.txt30
1 files changed, 19 insertions, 11 deletions
diff --git a/std/mime/testdata/sample.txt b/std/mime/testdata/sample.txt
index 97e9bf553..8c7a1c204 100644
--- a/std/mime/testdata/sample.txt
+++ b/std/mime/testdata/sample.txt
@@ -12,16 +12,24 @@ bar
content-disposition: form-data; name="file"; filename="tsconfig.json"
content-type: application/octet-stream
-{
- "compilerOptions": {
- "target": "es2018",
- "baseUrl": ".",
- "paths": {
- "deno": ["./deno.d.ts"],
- "https://*": ["../../.deno/deps/https/*"],
- "http://*": ["../../.deno/deps/http/*"]
- }
- }
-}
+{
+ "compilerOptions": {
+ "target": "es2018",
+ "baseUrl": ".",
+ "paths": {
+ "deno": ["./deno.d.ts"],
+ "https://*": ["../../.deno/deps/https/*"],
+ "http://*": ["../../.deno/deps/http/*"]
+ }
+ }
+}
+
+----------------------------434049563556637648550474
+content-disposition: form-data; name="file2"; filename="中文.json"
+content-type: application/octet-stream
+
+{
+ "test": "filename"
+}
----------------------------434049563556637648550474--