-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Support BASE64 file name encoding in ContentDisposition #26463
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
Conversation
RFC 6266, section 4.3 says |
The web server I'm dealing is https://bizstn.bk.mufg.jp/
Chrome browser decodes the response using BASE64 and recognizes it as MEISAI20210129230026.csv The web server seems to be Apache, not sure what is running behind. |
The ?[charset]?B format appears to be defined by RFC2047 - 4.1. The "B" encoding |
Thanks for the extra details. I'll have a look at this for 5.3.4. In the very least we can make sure that we can parse such headers correctly. |
There are web servers encode Content-Disposition filename part using BASE64 like - filename="=?UTF-8?B?5pel5pys6KqeLmNzdg==?=" which translates to 日本語.csv.
But ContentDisposition.parse() is not aware of that format.