New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/http: does not preserve backslash from FormFile header when Filename contains Chinese #25888
Comments
Can you try with 1.10.3 ? Also, please post a self-contained example which can be reproduced, so that it is easy for us to investigate. Thanks. |
The problem here is Line 283 in c12399f
|
@agnivade This issue can be reproduced with go 1.10.3 go version
go env
Code to reproduce
|
Thanks. Marking as 1.12 because 1.9 also has same behavior. /cc @bradfitz |
Change https://golang.org/cl/119795 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.4 darwin/amd64
Does this issue reproduce with the latest release?
Have not tested yet
What operating system and processor architecture are you using (
go env
)?What did you do?
Sent a form post request to upload a file with MSIE. Same issue with #15664
Except that my file name was in Chinese:
C:\新建文件件\中文第二次测试.mp4
What did you expect to see?
I expected that
consumeValue
function insrc/mime/mediatype.go
returns中文第二次测试.mp4
What did you see instead?
It returned
C:新建文件件中文第二次测试.mp4
The text was updated successfully, but these errors were encountered: