Commit 230b1c7
committed
fix(Core): align multipart headers with browser-standard behavior
Manual override of Content-Disposition to eliminate RFC 5987 FileNameStar
parameter. Strictly following RFC 7578 for multipart/form-data as
modern parsers like Bun/Zig fail when extended filename* metadata
is present.
Enforced explicit double-quoting of name and filename parameters.
Ensured raw UTF-8 persistence in the standard filename field to
mimic User Agent behavior and prevent .NET from fallback MIME
encoding (e.g. =?utf-8?B?...?=), which typically results in
mangled strings on strict backends.
Finally, this fixes uploads for img.fish.1 parent 5059ac9 commit 230b1c7
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
165 | 177 | | |
166 | 178 | | |
167 | 179 | | |
| |||
0 commit comments