Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
35.2.1
What operating system(s) are you using?
macOS
Operating System Version
Sequoia 15.1
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
When using protocol.handle to intercept HTTPS requests, for requests that do not require processing, I use net.fetch to handle them. For download file requests, the Content-Disposition header in the response contains Chinese content (the file name), as shown in the image below.
Upon reviewing the specification, I found that filename is compatible with older browser versions and can be set with Chinese characters. When filename* is present, the browser will ignore filename and directly recognize filename*, which contains the correctly encoded file name.
Actual Behavior
Currently, net.fetch directly checks every character of the response header content, and it throws an error in a very aggressive manner. This doesn’t fully comply with the specification.
Testcase Gist URL
No response
Additional Information
No response
Metadata
Metadata
Assignees
Type
Projects
Status