Support BASE64 file name encoding in ContentDisposition#26463
Support BASE64 file name encoding in ContentDisposition#26463yusuke wants to merge 1 commit intospring-projects:masterfrom
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.