Commit 3373929
authored
`Request.formData()` was checking the internal `PropertySymbol.contentType`
(inferred from the body init) instead of the actual `Content-Type` header.
This caused `formData()` to fail when a string body was paired with an
explicit `Content-Type` header, since the body-inferred type was always
`text/plain;charset=UTF-8`.
This aligns `Request.formData()` with `Response.formData()`, which already
reads from headers.
1 parent 55c17ba commit 3373929
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
732 | 745 | | |
733 | 746 | | |
734 | 747 | | |
| |||
0 commit comments