Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix decoding filenames from Chrome/Firefox
fixes #252
- Loading branch information
1 parent
399a4dc
commit a786412
Showing
4 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/fixture/http/special-chars-in-filename/issue-252-chrome.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
POST /upload HTTP/1.1 | ||
Host: localhost:8080 | ||
Content-Length: 363 | ||
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarytyE4wkKlZ5CQJVTG | ||
|
||
------WebKitFormBoundarytyE4wkKlZ5CQJVTG | ||
Content-Disposition: form-data; name="title" | ||
|
||
Weird filename | ||
------WebKitFormBoundarytyE4wkKlZ5CQJVTG | ||
Content-Disposition: form-data; name="upload"; filename="JΛ̊KE_2023-02-25T16:44:24.129Z.txt" | ||
Content-Type: text/plain | ||
|
||
I am a text file with a funky name! | ||
|
||
------WebKitFormBoundarytyE4wkKlZ5CQJVTG-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters